WordPress at Your Fingertips
function is not described

_delete_site_logo_on_remove_custom_logo_on_setup_theme() WP 1.0

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 account for dynamically-switched themes in the Customizer.

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Return

null. Nothing.

Usage

_delete_site_logo_on_remove_custom_logo_on_setup_theme();

Code of _delete_site_logo_on_remove_custom_logo_on_setup_theme() WP 5.8.2

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