theme_mod_{$name} WordPress Filter Hook

The theme_mod_{$name} hook is used to add theme modifications to a WordPress site. This hook can be used to add any number of modifications to a WordPress site, including adding new colors, changing the layout, or adding new features.

apply_filters( "theme_mod_{$name}", mixed $current_mod ) #

Filters the theme modification, or ‘theme_mod’, value.


Description

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.


Top ↑

Parameters

$current_mod

(mixed)The value of the active theme modification.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More