slimstat_set_visit_cookie
The slimstat_set_visit_cookie filter allows developers to control whether a cookie should be set for a pageview. This is especially useful for ensuring compliance with European privacy laws by checking if the user has opted out of cookies.
Usage
**$is_set_cookie = apply_filters('slimstat_set_visit_cookie', true);**
-
If $is_set_cookie is true (default), a cookie will be set.
-
If $is_set_cookie is false, no cookie will be set.