WordPress at Your Fingertips
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_6817', 10, 2 );
function filter_function_name_6817( $value, $old_value ){
	// filter...

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


Since 3.9.0 Introduced.

Where the hook is called

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

Where in WP core the hook is used WordPress

Usage not found.