update_option_jetpack_single_user_site

Fires when a user is added or removed from a site.

Description

do_action( 'update_option_jetpack_single_user_site', (string) $jetpack_single_user_site, $bool_jetpack_is_single_user_site ); 

Determines if the site is a single user site.

Parameters (2)

0. $jetpack_single_user_site (string) => 'jetpack_single_user_site'
The jetpack single user site.
1. $bool_jetpack_is_single_user_site
Jetpack::is_single_user_site() Is the current site a single user site.

Usage

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

Defined (1)

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

/class.jetpack.php  
  1. do_action( 'update_option_jetpack_single_user_site', 'jetpack_single_user_site', (bool) Jetpack::is_single_user_site() );