_delete_site_logo_on_remove_theme_mods()
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.
Returns
null. Nothing (null).
Usage
_delete_site_logo_on_remove_theme_mods();
Notes
- Global. Array. $_ignore_site_logo_changes
Changelog
| Since 5.8.0 | Introduced. |
_delete_site_logo_on_remove_theme_mods() delete site logo on remove theme mods code WP 6.9
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' );
}
}