WordPress at a glance
filter is not described

pre_set_theme_mod_(name) filter-hook . WP 3.9.0

Filters the theme modification, or 'theme_mod', value on save.

The dynamic portion of the hook name, $name, refers to the key name of the modification array. For example, 'header_textcolor', 'header_image', and so on depending on the theme options.


add_filter( 'pre_set_theme_mod_(name)', 'filter_function_name_512', 10, 2 );
function filter_function_name_512( $value, $old_value ){
	// filter...

	return $value;
The new value of the theme modification.
The current value of the theme modification.

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

С версии 3.9.0 Введена.

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

wp-includes/theme.php 1059
$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );

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

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