theme_mod_{$name}

theme_mod_{$name}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

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
    		}
    	}
    
    	/** 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