slimstat_filter_pageview_stat_init
Applies to SlimStat 6.0.0 · checked
This filter receives the initial pageview array before the remaining processing. Return the array to continue, or an empty array to reject the pageview. Preserve required initialization such as dt, use supported fields and preserve consent restrictions. notes is an array during processing, although it is serialized to a string for storage.
Callback signature
add_filter( 'slimstat_filter_pageview_stat_init', function ( $stat ) {
return $stat;
} );
Test callbacks on staging with your tracking mode and report context. See the database API and building an add-on.