Back to Filters

Updated on Jun 10, 2024

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.

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny