slimstat_db_pre_filters
The slimstat_db_pre_filters
filter is used by the WP SlimStat plugin to modify the filters that an administrator sets using the dropdown menus.
Usage
$_filters = apply_filters('slimstat_db_pre_filters', $_filters);
How it works
- The admin sets filters using dropdowns in the WP Slimstat settings.
- These filters are stored in the $_filters variable.
- The
slimstat_db_pre_filters
hook allows you or other plugins to change these filters. - Any changes you make to $_filters will affect what data WP Slimstat retrieves.
Why use it
- You might want to add extra filters programmatically.
- You might want to remove or change filters set by the admin.
- This gives you more control over what data is shown in WP Slimstat reports.