WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
событие не описано

update_option_(option) хук-событие . 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.

Использование

add_action( 'update_option_(option)', 'action_function_name_2697', 10, 3 );
function action_function_name_2697( $old_value, $value, $option ){
	// action...
}
$old_value(смешанный)
The old option value.
$value(смешанный)
The new option value.
$option(строка)
Option name.

Список изменений

С версии 2.0.1 Введена.
С версии 4.4.0 The $option parameter was added.

Где вызывается хук

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

Где используется хук (в ядре WP)

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 );