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