Functions and API
Read the stats tables from your own theme or plugin, and add reports of your own.
SlimStat Database Tables and Columns Reference
The four tables SlimStat creates, all 33 columns of wp_slim_stats with types, which indexes are optional, and what uninstall removes only if you opt in.
Adding Custom Reports to WP Slimstat
Add your own report to the SlimStat dashboard: register it, query the data you need, and render it alongside the built-in reports.
How to Use the Slimstat Tracker in External PHP Scripts
Record a pageview from outside WordPress: a redirect script, a cron job, or custom PHP.
Database API Methods
The methods SlimStat exposes for reading its tables from your own plugin or theme, so you can process the numbers before you display them anywhere.
Retrieving and Processing Data from the Database with PHP
When a shortcode is not flexible enough, SlimStat's API functions let you query and process the stats yourself before outputting them.
How to Get the Usernames of Visitors to a Specific Page
Find out which logged-in users viewed a given page on your site, either with a SlimStat shortcode or with a direct API call from your own PHP.
Creating Your First SlimStat Add-on
SlimStat add-ons are ordinary WordPress plugins that extend the reports.