s2_allow_site_switching
Sends an email notification of a new post.
Description
Parameters (1)
- 0. $this_site_switching (unknown)
- The this site switching.
Usage
- To run the hook, copy the example below.
- $this_site_switching = apply_filters( 's2_allow_site_switching', $this_site_switching );
- if ( !empty( $this_site_switching ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the s2_allow_site_switching callback
- function filter_s2_allow_site_switching( $this_site_switching ) {
- // make filter magic happen here...
- return $this_site_switching;
- };
- // add the filter
- add_filter( 's2_allow_site_switching', 'filter_s2_allow_site_switching', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 's2_allow_site_switching', 'filter_s2_allow_site_switching', 10, 1 );
Defined (2)
The filter is defined in the following location(s).
- /classes/class-s2-core.php
- if ( $this->s2_mu && !apply_filters('s2_allow_site_switching', $this->site_switching) ) {
- $this->site_switching = apply_filters('s2_allow_site_switching', false);