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



_delete_site_logo_on_remove_custom_logo_on_setup_theme › WordPress Function

Since5.8.0
Deprecatedn/a
_delete_site_logo_on_remove_custom_logo_on_setup_theme ( No parameters )
Defined at:
Codex:

Hooks `_delete_site_logo_on_remove_custom_logo` in `update_option_theme_mods_$theme`.

Hooks _delete_site_logo_on_remove_theme_mods in delete_option_theme_mods_$theme. Runs on setup_theme to account for dynamically-switched themes in the Customizer.


Source

function _delete_site_logo_on_remove_custom_logo_on_setup_theme() {
	$theme = get_option( 'stylesheet' );
	add_action( "update_option_theme_mods_$theme", '_delete_site_logo_on_remove_custom_logo', 10, 2 );
	add_action( "delete_option_theme_mods_$theme", '_delete_site_logo_on_remove_theme_mods' );
}