get_theme_mod


get_theme_mod ( $name, $default_value = false )

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

Description

Retrieves theme modification value for the active theme.If the modification name does not exist and `$default_value` is a string, then the default will be passed through the {@link sprintf()} PHP function with the template directory URI as the first value and the stylesheet directory URI as the second value.

Related Functions

get_theme_mods, set_theme_mod, get_theme, get_theme_data, get_theme_root

Top Google Results

User discussions

wpseek mobile