Developer Docs

Last updated on 3 August 2023

Here's an overview of all available actions and filters in CAOS which allow WordPress developers to manipulate and/or add to CAOS' functioning.

caos_exclude_from_tracking

Use this filter to exclude certain pages and/or users from tracking. For example, to filter your IP address when you're logged in, use the following example:

add_filter('caos_exclude_from_tracking', 'daan_exclude_ip_address');

function daan_exclude_ip_address($exclude) {
    if (is_user_logged_in()) {
        return $exclude;
    }

    return isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] === 'YOUR.IP.ADDRESS';
}
Shopping Cart
  • Your cart is empty.