pre_set_theme_mod_$name

pre_set_theme_mod_$name

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('pre_set_theme_mod_$name') is found 1 times:

  • /wp-includes/theme.php line 1111
    	 *
    	 * @param mixed $value     The new value of the theme modification.
    	 * @param mixed $old_value The current value of the theme modification.
    	 */
    	$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );
    
    	$theme = get_option( 'stylesheet' );
    
    	return update_option( "theme_mods_$theme", $mods );
    }