WordPress at Your Fingertips
function is not described

_delete_site_logo_on_remove_custom_logo() WP 1.0

Deletes the site_logo when the custom_logo theme mod is removed.

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.


null. Nothing.


_delete_site_logo_on_remove_custom_logo( $old_value, $value );
$old_value(array) (required)
Previous theme mod settings.
$value(array) (required)
Updated theme mod settings.

Code of _delete_site_logo_on_remove_custom_logo() WP 5.8.2

function _delete_site_logo_on_remove_custom_logo( $old_value, $value ) {
	// If the custom_logo is being unset, it's being removed from theme mods.
	if ( isset( $old_value['custom_logo'] ) && ! isset( $value['custom_logo'] ) ) {
		delete_option( 'site_logo' );