WordPress at a glance
filter is not described

pre_update_option_(option) filter-hook . WP 2.6.0

Filters a specific option before its value is (maybe) serialized and updated.

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


add_filter( 'pre_update_option_(option)', 'filter_function_name_1164', 10, 3 );
function filter_function_name_1164( $value, $old_value, $option ){
	// filter...

	return $value;
The new, unserialized option value.
The old option value.
Option name.

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

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

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

wp-includes/option.php 383
$value = apply_filters( "pre_update_option_{$option}", $value, $old_value, $option );

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

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