yst_ga_track_super_admin
Filter: 'yst_ga_track_super_admin' - Allows filtering if the Super admin should be tracked in a multi-site setup.
Description
Parameters (1)
- 0. $true (bool)
- The true.
Usage
- To run the hook, copy the example below.
- $true = apply_filters( 'yst_ga_track_super_admin', $true );
- if ( !empty( $true ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the yst_ga_track_super_admin callback
- function filter_yst_ga_track_super_admin( $true ) {
- // make filter magic happen here...
- return $true;
- };
- // add the filter
- add_filter( 'yst_ga_track_super_admin', 'filter_yst_ga_track_super_admin', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'yst_ga_track_super_admin', 'filter_yst_ga_track_super_admin', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /frontend/abstract-class-tracking.php
- $track_super_admin = apply_filters( 'yst_ga_track_super_admin', true );