_delete_site_logo_on_remove_custom_logo_on_setup_theme() – Hooks `_delete_site_logo_on_remove_custom_logo` in `update_option_theme_mods_$theme`.

You appear to be a bot. Output may be restricted

Description

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

Usage

_delete_site_logo_on_remove_custom_logo_on_setup_theme();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/blocks/site-logo.php
Lines:

1 to 5 of 5
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' );
}
 

 View on GitHub View on Trac