WordPress at a glance
filter is not described

theme_mod_(name) filter-hook . WP 2.2.0

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

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( 'theme_mod_(name)', 'filter_function_name_1206' );
function filter_function_name_1206( $current_mod ){
	// filter...

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

Where the hook is called

wp-includes/theme.php 870
return apply_filters( "theme_mod_{$name}", $mods[$name] );
wp-includes/theme.php 877
return apply_filters( "theme_mod_{$name}", $default );

Where the hook is used (in WP core)

wp-includes/class-wp-customize-setting.php 353
add_filter( "theme_mod_{$id_base}", array( $this, '_preview_filter' ) );
wp-includes/class-wp-customize-setting.php 357
add_filter( "theme_mod_{$id_base}", $multidimensional_filter );