Author: Mostafa Soufi

Fixing WP Statistics Plugin Issues Caused by Ad Blockers

If you’re having trouble with the WP Statistics on your WordPress site’s admin side and suspect ad blockers are to blame, you’re not alone. Many users face this issue, and it’s often due to adblocker browser extensions. In this article, we’ll explain the problem, its cause, how to solve it easily, and the actions being […]

New Price Plan in April 2022!

In response to market changes, we are updating WP-Statistics Add-Ons pricing and adjusting plans and pricing. We strive to provide the best quality products and services to our customers to ensure their satisfaction. Like always, we do our best to deliver the best quality products and services to our customers as user satisfaction is our […]

How to Stop Tracking in WP Statistics with PHP code?

Sometimes you need to enable the Anonymize IP Addresses with PHP code for GDPR. Here is an example to do that. add_action(‘init’, function (){ global $WP_Statistics; $WP_Statistics->update_option( ‘anonymize_ips’, ‘1’ ); });

Receive page’s visits number in different periods of time

You can receive the number of visits from a page or post in different periods of time. It’s done with the following PHP code: $page_id = 3; // Your page ID // Get page hits $today = wp_statistics_pages(‘today’, $page_id); $yesterday = wp_statistics_pages(‘yesterday’, $page_id); $week = wp_statistics_pages(‘week’, $page_id); $month = wp_statistics_pages(‘month’, $page_id); $year = wp_statistics_pages(‘year’, $page_id); […]

WP Statistics v12.3 is now available!

The v12.3 version of WP Statistics proves itself more than twice as faster because we’ve made a lot of changes in the plugin. However, if you find new issues, please let us know by opening a new issue on our Github page. Thank you!

WP Statistics v12.1.3 is now available!

We’re sorry about recent issues. Now you can update to WP Statistics v12.1.3 and have conflicting issues resolved. In this version, we’ve disabled Chart in Posts/Pages; because it requires more improvements in the next version. In the case of any issue, please let us know by opening a new issue on our Github page. Many […]

Add-Ons page – Coming soon!

The Add-Ons page soon will be added to the plugin. This page includes extensions that extend the functionality of the WP Statistics plugin. In case that you’re a WordPress programmer/developer and plan to sell extensions on this page, please send us your proposals here.

Launching a new website!

  The effort was made to incorporate a modern design in the new version of the WP Statistics website, and now the website is ready to go! The plugin documentation is separated into several web pages to facilitate easy reading.

Function API

WP Statistics supports several functions for other plugin and theme authors in order to retrieve statistics on sites. All of the external functions can be found here: wp-statistics\includes\functions\functions.php Function Description wp_statistics_useronline() Get the number of users online wp_statistics_visitor(time) Get the number of visitors wp_statistics_visit(time) Get the number of visits (hits) wp_statistics_pages(time,uri,id) Get the page views […]