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



_delete_site_logo_on_remove_theme_mods › WordPress Function

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

Deletes the site logo when all theme mods are being removed.



Source

function _delete_site_logo_on_remove_theme_mods() {
	global $_ignore_site_logo_changes;

	if ( $_ignore_site_logo_changes ) {
		return;
	}

	if ( false !== get_theme_support( 'custom-logo' ) ) {
		delete_option( 'site_logo' );
	}
}