Recent

tptn_add_counter_script_url filter

tptn_add_counter_script_url

Filter the URL of the tracker.

Other tracker types can override the URL processed by the jQuery.post request The corresponding tracker can use the below variables or append their own to $ajax_tptn_tracker

Type: filter
Since: 2.0
Source: includes/class-tracker.php line 119

Parameters

TypeNameDescription
string$home_urlURL of the tracker.

Usage

add_filter( 'tptn_add_counter_script_url', function($home_url) {
    // ...
    return $home_url;
} );