get_theme_mod


get_theme_mod ( $name, $default = false )

Parameters:
  • (string) $name Theme modification name.
  • (bool|string) $default
Returns:
  • (string)
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 first string the template directory URI and the second string the stylesheet directory URI.

Related Functions

get_theme_mods, set_theme_mod, get_theme, get_theme_root, get_theme_data

Top Google Results

User discussions

wpseek mobile