_delete_site_logo_on_remove_theme_mods()WP 1.0

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

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

_delete_site_logo_on_remove_theme_mods();

_delete_site_logo_on_remove_theme_mods() code WP 6.5.2

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