WordPress at a glance
action is not described

update_option_(option) action-hook . WP 2.0.1

Fires after the value of a specific option has been successfully updated.

The dynamic portion of the hook name, $option, refers to the option name.

Usage

add_action( 'update_option_(option)', 'action_function_name_1399', 10, 3 );
function action_function_name_1399( $old_value, $value, $option ){
	// action...
}
$old_value(mixed)
The old option value.
$value(mixed)
The new option value.
$option(string)
Option name.

Notes

  • Since 4.4.0 The $option parameter was added.

Where the hook is called

update_option()
update_option_(option)
wp-includes/option.php 411
do_action( "update_option_{$option}", $old_value, $value, $option );

Where the hook is used (in WP core)

wp-admin/includes/admin-filters.php 61
add_action( 'update_option_home', 'update_home_siteurl', 10, 2 );
wp-admin/includes/admin-filters.php 62
add_action( 'update_option_siteurl', 'update_home_siteurl', 10, 2 );
wp-admin/includes/admin-filters.php 63
add_action( 'update_option_page_on_front', 'update_home_siteurl', 10, 2 );
wp-admin/includes/admin-filters.php 64
add_action( 'update_option_admin_email', 'wp_site_admin_email_change_notification', 10, 3 );
wp-admin/includes/admin-filters.php 67
add_action( 'update_option_new_admin_email', 'update_option_new_admin_email', 10, 2 );
wp-includes/default-filters.php 468
add_action( 'update_option_start_of_week', 'delete_get_calendar_cache' );
wp-includes/default-filters.php 469
add_action( 'update_option_gmt_offset', 'delete_get_calendar_cache' );
wp-includes/ms-default-filters.php 119
add_action( 'update_option_blogname', 'clean_site_details_cache', 10, 0 );
wp-includes/ms-default-filters.php 120
add_action( 'update_option_siteurl', 'clean_site_details_cache', 10, 0 );
wp-includes/ms-default-filters.php 121
add_action( 'update_option_post_count', 'clean_site_details_cache', 10, 0 );
wp-includes/ms-default-filters.php 122
add_action( 'update_option_home', 'clean_site_details_cache', 10, 0 );
wp-includes/ms-default-filters.php 19
add_action( 'update_option_blog_public', 'update_blog_public', 10, 2 );
wp-includes/update.php 820
add_action( 'update_option_WPLANG', 'wp_clean_update_cache', 10, 0 );