wpseek.com
A WordPress-centric search engine for devs and theme authors



_sync_custom_logo_to_site_logo_on_setup_theme › WordPress Function

Sincen/a
Deprecatedn/a
_sync_custom_logo_to_site_logo_on_setup_theme ( No parameters )
Defined at:
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.


Source

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 );
}