slimstat_set_visit_cookie
Applies to SlimStat 6.0.0 · checked
This filter receives the current decision about setting a visit cookie. The incoming value depends on settings and the calling path; it is not always true. Return false to suppress the PHP cookie operation at this hook. Browser cookie behavior also depends on tracker settings and consent, so this filter alone is not a complete cookie policy. Do not force true to bypass consent.
Callback signature
add_filter( 'slimstat_set_visit_cookie', '__return_false' );
Test callbacks on staging with your tracking mode and report context. See the database API and building an add-on.