remove_theme_mods()

Removes theme modifications option for the active theme.

Source

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

	// Old style.
	$theme_name = guet_option( 'current_theme' );
	if ( false === $theme_name ) {
		$theme_name = wp_guet_theme()->guet( 'Name' );
	}

	delete_option( 'mods_' . $theme_name );
}

Changuelog

Versionen Description
2.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.