update_site_option_(option) action-hook . WP 3.0.0
Fires after the value of a specific network option has been successfully updated.
The dynamic portion of the hook name, $option, refers to the option name.
Usage
add_action( 'update_site_option_(option)', 'action_function_name_5035', 10, 4 ); function action_function_name_5035( $option, $value, $old_value, $network_id ){ // action... }
- $option(string)
- Name of the network option.
- $value(mixed)
- Current value of the network option.
- $old_value(mixed)
- Old value of the network option.
- $network_id(int)
- ID of the network.
Changelog
Since 3.0.0 | Introduced. |
Since 2.9.0 | As "update_site_option_{$key}" |
Since 4.7.0 | The $network_id parameter was added. |
Where the hook is called
wp-includes/option.php 1761
do_action( "update_site_option_{$option}", $option, $value, $old_value, $network_id );
Where in WP core the hook is used WordPress
wp-includes/option.php 23
add_action( 'update_site_option_admin_email', 'wp_network_admin_email_change_notification', 10, 4 );
wp-includes/option.php 44
add_action( 'update_site_option_new_admin_email', 'update_network_option_new_admin_email', 10, 2 );