Author: Mostafa Soufi

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 […]

WP Statistics 12.5.1 is going to surprise you!

Thanks to your encouragement and helpful feedback, new changes and features have been added to the new version of the WP Statistics plugin. This version of the plugin is going to surprise you with your frequently requested features from us. Let’s see what it has to offer. Know the cities of the visitors from your […]

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 new 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 extension 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 […]