Archives: Documentations

WordPress Multi-Site

WordPress Multi-site allows you to run multiple independent sites from a single WordPress installation. WP Statistics does not fully support multi-site at this time but does have some basic options available for multi-site installations. The key areas of support are currently: Installation Updates Removal Basic network menu Multi-Site Installation Installing WP Statistics on a multi-site […]

Statistics Widget

WP Statistics comes with a WordPress widget to display some statistical information on your front end. The widget is still supported. However, you may find the shortcodes to be more useful as they can be used in an HTML widget with any custom formatting you may like to apply. Just navigate to Appearance → Widgets. […]

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 parameter uses the strtotime() PHP function. For more details, visit the PHP manual. Example Usage To display the number of visitors today: To display the […]

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() Get the number of users online wp_statistics_visitor(time) Get the number of visitors wp_statistics_visit(time) Get the number of views (hits) wp_statistics_pages(time,uri,id) Get the page views […]