add_option_jetpack_is_multi_site

Fires when the site URL is updated.

Description

do_action( 'add_option_jetpack_is_multi_site', (string) $jetpack_is_multi_site, $string_bool_is_multisite ); 

Determines if the site is part of a multisite network.

Parameters (2)

0. $jetpack_is_multi_site (string) => 'jetpack_is_multi_site'
The jetpack is multi site.
1. $string_bool_is_multisite
is_multisite() Is the site part of a mutlisite network.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'add_option_jetpack_is_multi_site', $jetpack_is_multi_site, $string_bool_is_multisite ); 
The following example is for adding a hook callback.
  1. // define the add_option_jetpack_is_multi_site callback 
  2. function action_add_option_jetpack_is_multi_site( $jetpack_is_multi_site, $string_bool_is_multisite ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'add_option_jetpack_is_multi_site', 'action_add_option_jetpack_is_multi_site', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'add_option_jetpack_is_multi_site', 'action_add_option_jetpack_is_multi_site', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/class.jetpack.php  
  1. do_action( 'add_option_jetpack_is_multi_site', 'jetpack_is_multi_site', (string) (bool) is_multisite() );