| 开发者 | robert2021south |
|---|---|
| 更新时间 | 2025年10月18日 10:17 |
| 捐献地址: | 去捐款 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
/wp-json/rwpsl/v1/views/{post_id}[rwpsl_post_views]rw-postviewstats-lite folder to /wp-content/plugins/Yes. By default, it tracks the 'post' and 'page' types. You can add support for any custom post type using a filter hook in your theme or another plugin: ```php add_filter('rwpsl_supported_post_types', function($types) { $types[] = 'your_custom_post_type'; return $types; });
The plugin uses browser cookies to ignore repeat visits from the same user for 12 hours.
The plugin only stores post view counts in your WordPress database. It uses a cookie to prevent duplicate counting but does not collect any personal information or IP addresses.
Tested with: WordPress 6.6 to 6.8 PHP 8.2 to 8.4 MySQL 5.7 to 8.0
You can use the shortcode [rwpsl_post_views] in posts/pages/widgets, or use the provided REST API endpoint.
Multisite support is available in the Pro version. The Lite version works on single WordPress installations.
Copy /languages/rw-postviewstats-lite.pot and create your translation files. Submit your .po file to help improve the plugin.
Fix the problem of $_POST not being sanitized
Standard constant naming Fix REST API callback permissions Add protection code to HTML template
Initial release with AJAX tracking Cookie-based duplicate prevention REST API integration Shortcode for displaying views
Fix the problem of $_POST not being sanitized ```