Recent

crp_tracking_utm_parameters filter Pro only

crp_tracking_utm_parameters

Filter the UTM parameters before they are added to the URL.

Type: filter
Since: 4.0.0
Source: includes/class-pro.php line 313

Parameters

TypeNameDescription
array$utm_paramsThe UTM parameters array.
string$urlThe original post URL.
\WP_Post$resultThe post object.
\WP_Post$source_postThe source post object.
array$argsArguments array.

Usage

add_filter( 'crp_tracking_utm_parameters', function($utm_params, $url, $result, $source_post, $args) {
    // ...
    return $utm_params;
} );