get_theme_mod()
Retrieve theme modification value for the current theme.
If the modification name does not exist and $default is a string, then the default will be passed through the sprintf() PHP function with the template directory URI as the first value and the stylesheet directory URI as the second value.
Uses: get_theme_mods()
Used By: get_custom_logo(), get_header_image(), get_nav_menu_locations(), get_header_textcolor(), get_header_video_url(), has_custom_logo()
1 time — 0.000035 sec (very fast) | 50000 times — 0.58 sec (very fast) | PHP 7.0.5, WP 4.5
Hooks from the function
Return
Mixed
. Theme modification value.
Usage
get_theme_mod( $name, $default );
- $name(string) (required)
- Theme modification name.
- $default(mixed)
- Theme modification default value.
Default: false
Changelog
Since 2.1.0 | Introduced. |