get_theme_mod ( $name, $default_value = false )

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


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_root, get_theme_data

Top Google Results

User discussions

wpseek mobile