yst_ga_filter_push_vars
The Google Analytics by Yoast yst ga filter push vars hook.
Description
Parameters (1)
- 0. $gaq_push (unknown)
- The gaq push.
Usage
- To run the hook, copy the example below.
- $gaq_push = apply_filters( 'yst_ga_filter_push_vars', $gaq_push );
- if ( !empty( $gaq_push ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the yst_ga_filter_push_vars callback
- function filter_yst_ga_filter_push_vars( $gaq_push ) {
- // make filter magic happen here...
- return $gaq_push;
- };
- // add the filter
- add_filter( 'yst_ga_filter_push_vars', 'filter_yst_ga_filter_push_vars', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'yst_ga_filter_push_vars', 'filter_yst_ga_filter_push_vars', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /frontend/class-universal.php
- if ( has_filter( 'yst_ga_filter_push_vars' ) && $value_to_push = apply_filters( 'yst_ga_filter_push_vars', $gaq_push ) ) {