Languages: English • Italiano • 日本語 (Add your language)
Retrieve all theme modification values for the current theme.
If no theme mods have been set, will return boolean false.
<?php get_theme_mods() ?>
None.
$mods = get_theme_mods(); var_dump($mods); // output example: // array(2) { ["header_textcolor"]=> string(3) "333" ["header_image"]=> string(20) "random-default-image" } var_dump($mods['header_textcolor']); // output example: // string(3) "333"
get_theme_mods() is located in wp-includes/theme.php
.
set_theme_mod(), get_theme_mod(), get_theme_mods(), remove_theme_mod(), remove_theme_mods()