get_theme_mod


get_theme_mod ( $name, $default = false )

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

Description

Retrieves 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 {@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_root, get_theme_data

Top Google Results

User discussions

wpseek mobile