wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_sync_custom_logo_to_site_logo_on_setup_theme › WordPress Function

Seitn/v
Veraltetn/v
_sync_custom_logo_to_site_logo_on_setup_theme ( Keine Parameter )
Definiert in:
Codex:

Hooks `_sync_custom_logo_to_site_logo` in `update_option_theme_mods_$theme`.

Runs on setup_theme to account for dynamically-switched themes in the Customizer.


Quellcode

function _sync_custom_logo_to_site_logo_on_setup_theme() {
	$theme = get_option( 'stylesheet' );
	add_action( "update_option_theme_mods_$theme", '_sync_custom_logo_to_site_logo', 10, 2 );
}