Recent

tptn_sitewide_tracking_contextfilterPro only

tptn_sitewide_tracking_context

Filter the site-wide tracking context.

Return one of the built-in context keys (front_page, home_page, search, category, tag, taxonomy, author, post_type_archive, date_archive, archive or other). Returning an empty or unknown key disables tracking for the current request.

Type: filter
Since: 4.5.0
Source: includes/pro/class-sitewide-tracker.php line 152

Parameters

Type Name Description
string $context Context key.

Usage

add_filter( 'tptn_sitewide_tracking_context', function($context) {
    // ...
    return $context;
} );