theme_mod_{$name}

theme_mod_{$name}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('theme_mod_{$name}') is found 2 times:

  • /wp-includes/theme.php line 1069

    * @since 2.2.0
    *
    * @param mixed $current_mod The value of the active theme modification.
    */
    return apply_filters( “theme_mod_{$name}”, $mods[ $name ] );
    }

    if ( is_string( $default_value ) ) {
    // Only run the replacement if an sprintf() string format pattern was found.
    if ( preg_match( ‘#(?

  • /wp-includes/theme.php line 1082
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
            }
        }
     
        /** This filter is documented in wp-includes/theme.php */
        return apply_filters( "theme_mod_{$name}", $default_value );
    }
     
    /**
     * Updates theme modification value for the active theme.
     *
     * @since 2.1.0