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.8

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

  • /wp-includes/theme.php line 1111
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
         *
         * @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 );
    }