post-views-counter
Last commit date
assets
1 year ago
blocks
1 year ago
css
1 year ago
includes
1 year ago
js
1 year ago
languages
1 year ago
index.php
6 years ago
post-views-counter.php
1 year ago
readme.txt
1 year ago
readme.txt
316 lines
| 1 | === Post Views Counter === |
| 2 | Contributors: dfactory |
| 3 | Tags: counter, postviews, statistics, analytics, pageviews |
| 4 | Requires at least: 6.3.0 |
| 5 | Requires PHP: 7.4.0 |
| 6 | Tested up to: 6.7.1 |
| 7 | Stable tag: 1.5.0 |
| 8 | License: MIT License |
| 9 | License URI: http://opensource.org/licenses/MIT |
| 10 | |
| 11 | Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way. |
| 12 | |
| 13 | == Description == |
| 14 | |
| 15 | [Post Views Counter](https://postviewscounter.com/) allows you to display how many times a post, page or custom post type had been viewed with this simple, fast and easy to use plugin. |
| 16 | |
| 17 | = Features include: = |
| 18 | |
| 19 | * Option to select post types for which post views will be counted and displayed. |
| 20 | * 3 methods of collecting post views data: PHP, Javascript and REST API for greater flexibility |
| 21 | * Compatible with data privacy regulations |
| 22 | * Possibility to manually set views count for each post |
| 23 | * Dashboard post views stats widget |
| 24 | * Full Privacy regulations compliance |
| 25 | * Capability to query posts according to its views count |
| 26 | * Custom REST API endpoints |
| 27 | * Option to set counts interval |
| 28 | * Excluding counts from visitors: bots, logged in users, selected user roles |
| 29 | * Excluding users by IPs |
| 30 | * Restricting display by user roles |
| 31 | * Restricting post views editing to admins |
| 32 | * One-click data import from WP-PostViews |
| 33 | * Sortable admin column |
| 34 | * Post views display position, automatic or manual via shortcode |
| 35 | * Multisite compatibile |
| 36 | * WPML and Polylang compatible |
| 37 | * .pot file for translations included |
| 38 | |
| 39 | == Installation == |
| 40 | |
| 41 | 1. Install Post Views Counter either via the WordPress.org plugin directory, or by uploading the files to your server |
| 42 | 2. Activate the plugin through the 'Plugins' menu in WordPress |
| 43 | 3. Go to the Post Views Counter settings and set your options. |
| 44 | |
| 45 | == Frequently Asked Questions == |
| 46 | |
| 47 | No questions yet. |
| 48 | |
| 49 | == Screenshots == |
| 50 | |
| 51 | 1. screenshot-1.png |
| 52 | 2. screenshot-2.png |
| 53 | |
| 54 | == Changelog == |
| 55 | |
| 56 | = 1.5.0 = |
| 57 | * Fix: Deprecated DateTime dynamic property |
| 58 | * Tweak:Implement AJAX queue for saving dashboard user options |
| 59 | * Tweak: Update bot detection class |
| 60 | * Tweak: Add widget loaded JS event |
| 61 | * Tweak: Fix typo in widget tooltip |
| 62 | * Tweak: Improve dahboard widgets UI |
| 63 | * New: Dashboard widgets revamp (Pro) |
| 64 | * New: Added weekly and yearly dashboard widgets navigation (Pro) |
| 65 | * New: Added trend (increase/decrease) to dashboard widget charts (Pro) |
| 66 | * New: Taxonomy & Terms selection in Views by Post reports (Pro) |
| 67 | |
| 68 | = 1.4.8 = |
| 69 | * New: Introducing Post Views block |
| 70 | * New: Introducing Most Viewed Posts block |
| 71 | * Tweak: Updated Chart.js to 4.4.6 |
| 72 | |
| 73 | = 1.4.7 = |
| 74 | * New: Dynamic views loading option (Pro) |
| 75 | * Fix: Multi-sorting queries with post_views orderby parameter |
| 76 | |
| 77 | = 1.4.6 = |
| 78 | * Fix: Bulk posts selection |
| 79 | * Fix: Additional SQL queries escaping |
| 80 | * Tweak: Call to undefined function is_favicon() |
| 81 | * Tweak: Enqueue main script in header instead of footer |
| 82 | * Tweak: Better JS error handling |
| 83 | * Tweak: Updated Chart.js to 4.4.2 |
| 84 | |
| 85 | = 1.4.5 = |
| 86 | * Fix: Post views bulk saving security |
| 87 | * Tweak: Removed WP Rocket as bot in crawler detection |
| 88 | |
| 89 | = 1.4.4 = |
| 90 | * New: Option to enter meta_key for importing the views |
| 91 | * New: Revamped Reports for Views by Date, Views by Post and Views by Author (Pro) |
| 92 | * New: REST API support for post, site, term and user views (Pro) |
| 93 | * New: Views Period option to display views from a selected time period instead of total (Pro) |
| 94 | * New: [site-views] shortcode for total site views display (Pro) |
| 95 | * Tweak: Improved icon handling |
| 96 | * Tweak: Updated crawler detection |
| 97 | |
| 98 | = 1.4.3 = |
| 99 | * Tweak: Update languages file |
| 100 | |
| 101 | = 1.4.2 = |
| 102 | * New: Option to select position of the plugin menu |
| 103 | |
| 104 | = 1.4.1 = |
| 105 | * Fix: Frontpage views not recorded properly |
| 106 | |
| 107 | = 1.4 = |
| 108 | * New: Introducing Post Views Counter Pro |
| 109 | * New: Fast Ajax views counting mode (Pro) |
| 110 | * New: Google AMP support (Pro) |
| 111 | * New: Taxonomy term views (Pro) |
| 112 | * New: Author archive views (Pro) |
| 113 | * New: Cookies/Cookieless data storage option (Pro) |
| 114 | * New: Dedicated Reports page (Pro) |
| 115 | * New: Exporting views to CSV or XML files (Pro) |
| 116 | * Tweak: Improved validation and sanitization |
| 117 | * Tweak: Chart.js updated to 4.3.0 |
| 118 | |
| 119 | = 1.3.13 = |
| 120 | * New: Compatibility with WP 6.2 and PHP 8.2 |
| 121 | * Fix: Invalid year in seconds |
| 122 | * Fix: Possible invalid cookie data in views storage |
| 123 | * Fix: Default database prefix |
| 124 | * Tweak: Switch from wp_localize_script to wp_add_inline_script |
| 125 | * Tweak: Updated bot detection |
| 126 | |
| 127 | |
| 128 | = 1.3.12 = |
| 129 | * Fix: Frontend Javascript rewritten from jQuery to Vanilla JS |
| 130 | * Fix: Admin Bar Style loading on every page |
| 131 | * Fix: Network initialization process for new sites |
| 132 | * Fix: IP address encryption |
| 133 | * Fix: REST API endpoints |
| 134 | * Fix: Removed couple of deprecated functions |
| 135 | * Tweak: Updated chart.js script to version 3.9.1 |
| 136 | * Tweak: Added SameSite attribute to cookie |
| 137 | |
| 138 | = 1.3.11 = |
| 139 | * Fix: Potentailly incorrect counting of post views in edge case db queries |
| 140 | * Fix: Possible empty chart in dashboard |
| 141 | * Fix: Incorrect saving of dashboard widget user options |
| 142 | * Tweak: Updated Chart.js to version 3.7.0 |
| 143 | |
| 144 | = 1.3.10 = |
| 145 | * Fix: Post views column not working properly |
| 146 | * Tweak: Switched to openssl_encrypt method for IP encryption |
| 147 | * Tweak: Improved user input escaping |
| 148 | |
| 149 | = 1.3.9 = |
| 150 | * Tweak: Remove unnecessary plugin files |
| 151 | |
| 152 | = 1.3.8 = |
| 153 | * Tweak: Improved user input escaping |
| 154 | |
| 155 | = 1.3.7 = |
| 156 | * Tweak: Implemented internal settings API |
| 157 | |
| 158 | = 1.3.6 = |
| 159 | * Fix: Option to hide admin bar chart |
| 160 | |
| 161 | = 1.3.5 = |
| 162 | * New: Option to hide admin bar chart |
| 163 | * Fix: Small security bug with views label |
| 164 | * Tweak: Remove unnecessary CSS on every page |
| 165 | |
| 166 | = 1.3.4 = |
| 167 | * New: Post Views stats preview in the admin bar |
| 168 | * New: Top Posts data available in the dashboard widget |
| 169 | * Tweak: Improved privacy using IP encrypting |
| 170 | * Tweak: PHP 8.x compatibility |
| 171 | |
| 172 | = 1.3.3 = |
| 173 | * Fix: PHP Notice: Trying to get property 'colors' of non-object |
| 174 | * Fix: PHP Notice: register_rest_route was called incorrectly |
| 175 | |
| 176 | = 1.3.2 = |
| 177 | * New: Introducing dashboard widget navigation |
| 178 | * New: Counter support for Media (attachments) |
| 179 | * Tweak: Extended views query for handling complex date/time requests |
| 180 | |
| 181 | = 1.3.1 = |
| 182 | * Fix: Gutenberg CSS file missing |
| 183 | * Tweak: POT translation file update |
| 184 | |
| 185 | = 1.3 = |
| 186 | * New: Gutenberg compatibility |
| 187 | * New: Additional options in widgets: post author and display style |
| 188 | * Fix: Undefined variables when IP saving enabled |
| 189 | * Fix: Check cookie not being triggered in Fast Ajax mode |
| 190 | * Fix: Invalid arguments in implode function causing warning |
| 191 | * Fix: Thumbnail size option did not show up after thumbnail checkbox was checked |
| 192 | * Fix: Saving post (in quick edit mode too) did not update post views |
| 193 | |
| 194 | = 1.2.14 = |
| 195 | * Fix: Bulk edit post views count reset issue |
| 196 | |
| 197 | = 1.2.13 = |
| 198 | * New: Experimental Fast AJAX counter method (10+ times faster) |
| 199 | |
| 200 | = 1.2.12 = |
| 201 | * New: GDPR compatibility with Cookie Notice plugin |
| 202 | |
| 203 | = 1.2.11 = |
| 204 | * Tweak: Additional IP expiration checks added as an option |
| 205 | |
| 206 | = 1.2.10 = |
| 207 | * New: Additional transient based IP expiration checks |
| 208 | * Tweak: Chart.js script update to 2.7.1 |
| 209 | |
| 210 | = 1.2.9 = |
| 211 | * Fix: WooCommerce products list table broken |
| 212 | |
| 213 | = 1.2.8 = |
| 214 | * New: Multisite compatibility |
| 215 | * Fix: Undefined index post_views_column on post_views_counter/includes/settings.php |
| 216 | * Tweak: Improved user IP handling |
| 217 | |
| 218 | = 1.2.7 = |
| 219 | * Fix: Chart data not updating for object cached installs due to missing expire parameter |
| 220 | * Fix: Bug preventing hiding the counter based on user role. |
| 221 | * Fix: Undefined notice in the admin dashboard request |
| 222 | |
| 223 | = 1.2.6 = |
| 224 | * Fix: Hardcoded post_views database table prefix |
| 225 | |
| 226 | = 1.2.5 = |
| 227 | * New: REST API counter mode |
| 228 | * New: Adjust dashboard chart colors to admin color scheme |
| 229 | * Tweak: Dashboard chart query optimization |
| 230 | * Tweak: post_views database table optimization |
| 231 | * Tweak: Added plugin documentation link |
| 232 | |
| 233 | = 1.2.4 = |
| 234 | * New: Advanced crawler detection |
| 235 | * Tweak: Chart.js script update to 2.4.0 |
| 236 | |
| 237 | = 1.2.3 = |
| 238 | * New: IP wildcard support |
| 239 | * Tweak: Delete post_views database table on deactivation |
| 240 | |
| 241 | = 1.2.2 = |
| 242 | * Fix: Notice undefined variable: post_ids, thanks to [zytzagoo](https://github.com/zytzagoo) |
| 243 | * Tweak: Switched translation files storage, from local to WP repository |
| 244 | |
| 245 | = 1.2.1 = |
| 246 | * New: Option to display post views on select page types |
| 247 | * Tweak: Dashboard widget query optimization |
| 248 | |
| 249 | = 1.2.0 = |
| 250 | * New: Dashboard post views stats widget |
| 251 | * Fix: A couple of typos in method names |
| 252 | |
| 253 | = 1.1.4 = |
| 254 | * Fix: Dashicons link broken. |
| 255 | * Tweak: Confirmed WordPress 4.4 compatibility |
| 256 | |
| 257 | = 1.1.3 = |
| 258 | * Fix: Duplicated views count in custom post types |
| 259 | * Fix: Exclude visitors checkboxes not working |
| 260 | |
| 261 | = 1.1.2 = |
| 262 | * Fix: Most viewed posts widget broken |
| 263 | |
| 264 | = 1.1.1 = |
| 265 | * Tweak: Enable edit views on new post. |
| 266 | * Tweak: Extend WP_Query post data with post_views |
| 267 | |
| 268 | = 1.1.0 = |
| 269 | * New: Quick post views edit |
| 270 | * New: Bulk post views edit |
| 271 | * Tweak: Admin UI improvements |
| 272 | |
| 273 | = 1.0.12 = |
| 274 | * New: Italian translation, thanks to [Rene Querin](http://www.q-design.it) |
| 275 | |
| 276 | = 1.0.11 = |
| 277 | * New: French translation, thanks to [Theophil Bethel](http://reseau-chretien-gironde.fr/) |
| 278 | |
| 279 | = 1.0.10 = |
| 280 | * New: Option to limit post views editing to admins only |
| 281 | |
| 282 | = 1.0.9 = |
| 283 | * New: Spanish translation, thanks to [Carlos Rodriguez](http://cglevel.com/) |
| 284 | |
| 285 | = 1.0.8 = |
| 286 | * New: Croation translation, thanks to [Tomas Trkulja](http://zytzagoo.net/blog/) |
| 287 | |
| 288 | = 1.0.7 = |
| 289 | * New: Possibility to manually set views count for each post |
| 290 | * New: Plugin development moved to [dFactory GitHub Repository](https://github.com/dfactoryplugins) |
| 291 | |
| 292 | = 1.0.6 = |
| 293 | * New: Object cache support, thanks to [Tomas Trkulja](http://zytzagoo.net/blog/) |
| 294 | * New: Hebrew translation, thanks to [Ahrale Shrem](http://atar4u.com/) |
| 295 | |
| 296 | = 1.0.5 = |
| 297 | * Tweak: Added number_format_i18n for displayed views count |
| 298 | * Tweak: Additional action hook for developers |
| 299 | |
| 300 | = 1.0.4 = |
| 301 | * Fix: Possible issue with remove_post_views_count function |
| 302 | |
| 303 | = 1.0.3 = |
| 304 | * New: Russian translation, thanks to moonkir |
| 305 | * Fix: Remove [post-views] shortcode from post excerpts if excerpt is empty |
| 306 | |
| 307 | = 1.0.2 = |
| 308 | * Fix: Pluggable functions initialized too lately |
| 309 | |
| 310 | = 1.0.0 = |
| 311 | Initial release |
| 312 | |
| 313 | == Upgrade Notice == |
| 314 | |
| 315 | = 1.5.0 = |
| 316 | Multiple dashboard widget tweaks, Complete dashboard widgets revamp (Pro) |