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



remove_theme_mods › WordPress Function

Desde2.1.0
Obsoleton/a
remove_theme_mods ( Sem parâmetros )
Definido em:
Codex:

Removes theme modifications option for the active theme.



Fonte

function remove_theme_mods() {
	delete_option( 'theme_mods_' . get_option( 'stylesheet' ) );

	// Old style.
	$theme_name = get_option( 'current_theme' );
	if ( false === $theme_name ) {
		$theme_name = wp_get_theme()->get( 'Name' );
	}

	delete_option( 'mods_' . $theme_name );
}