get_theme_mod


get_theme_mod ( $name, $default = false )

Parameters:
  • (string) $name Theme modification name.
  • (string|false) $default Optional. Theme modification default value. Default false.
Returns:
  • (mixed) Theme modification value.
Defined at:

Description

Retrieve theme modification value for the current theme.

If the modification name does not exist, then the $default will be passed through {@link https://secure.php.net/sprintf sprintf()} PHP function with the template directory URI as the first string and the stylesheet directory URI as the second string.

Related Functions

get_theme_mods, set_theme_mod, get_theme, get_theme_data, get_theme_root

Top Google Results

User discussions

wpseek mobile