Functions

Unlock advanced capabilities using custom code from.

Get a Page Stats List

You can make a list from Page Stats, including ID, Count, and Page Slug, by the following code:

Get a Page’s or Post’s Hits

You can get the page’s or post’s hits at different periods of time by the below examples:

Sanitize User IP

If the IP value returned from your server has a special character, you can sanitize user IP by using: wp_statistics_sanitize_user_ip filter in your WordPress for getting real user IP from…

Shortcodes

With WP Statistics, you can display different statistics using shortcodes in posts, pages, and HTML widgets. General Shortcode Format To use WP Statistics shortcodes, follow the format below: Parameters This…

Function API

WP Statistics supports several functions for other plugins 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()

Let’s get started
Take your business to next level

Become part of our growing family of +600,000 users and get the tools you need to make smart choices for your website. Simple, powerful insights are just a click away.