_delete_site_logo_on_remove_custom_logo_on_setup_theme()
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.
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_custom_logo_on_setup_theme();
_delete_site_logo_on_remove_custom_logo_on_setup_theme() delete site logo on remove custom logo on setup theme code WP 6.5.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' ); }