get_theme_mods [ WordPress-Funktionen ]
get_theme_mods ( Keine Parameter )
| Gibt zurück: |
|
| Definiert in: |
|
| Codex |
Retrieve all theme modifications.
Quellcode
function get_theme_mods() {
$theme_slug = get_option( 'stylesheet' );
if ( false === ( $mods = get_option( "theme_mods_$theme_slug" ) ) ) {
$theme_name = get_option( 'current_theme' );
if ( false === $theme_name )
$theme_name = wp_get_theme()->get('Name');
$mods = get_option( "mods_$theme_name" ); // Deprecated location.
if ( is_admin() && false !== $mods ) {
update_option( "theme_mods_$theme_slug", $mods );
delete_option( "mods_$theme_name" );
}
}
return $mods;
}Beispiele [ wp-snippets.com ]
Top Google Suchergebnisse
- Function Reference/get theme mods « WordPress Codex
Description. Retrieve all theme modification values for the current theme. If no theme mods have been set, will return boolean false.
codex.wordpress.org - get_theme_mod - WordPress Codex
Description. Retrieves a modification setting for the current theme. Along with set_theme_mod() this function can sometimes offer theme developers a simpler ...
codex.wordpress.org - get_theme_mods (WordPress Function) - WPSeek.com
Jun 9, 2013 ... Retrieve all theme modifications. WordPress lookup for get_theme_mods, a WordPress Function.
wpseek.com - get_theme_mods | A HitchHackers guide through WordPress
Feb 24, 2011 ... function get_theme_mods() { $theme_slug = get_option( 'stylesheet' ); if ( false == = ( $mods = get_option( "theme_mods_$theme_slug" ) ...
hitchhackerguide.com
