wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



_delete_site_logo_on_remove_custom_logo_on_setup_theme › WordPress Function

Desden/a
Obsoleton/a
_delete_site_logo_on_remove_custom_logo_on_setup_theme ( Sem parâmetros )
Definido em:
Codex:

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.


Fonte

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