yoast-ga-push-array-universal
Filter: 'yoast-ga-push-array-universal' - Allows filtering of the commands to push.
Description
Parameters (1)
- 0. $gaq_push (unknown)
- The gaq push.
Usage
- To run the hook, copy the example below.
- $gaq_push = apply_filters( 'yoast-ga-push-array-universal', $gaq_push );
- if ( !empty( $gaq_push ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the yoast-ga-push-array-universal callback
- function filter_yoast_ga_push_array_universal( $gaq_push ) {
- // make filter magic happen here...
- return $gaq_push;
- };
- // add the filter
- add_filter( 'yoast-ga-push-array-universal', 'filter_yoast_ga_push_array_universal', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'yoast-ga-push-array-universal', 'filter_yoast_ga_push_array_universal', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /frontend/class-universal.php
- $gaq_push = apply_filters( 'yoast-ga-push-array-universal', $gaq_push );