Outil de recherche WordPress pour les développeurs et auteurs de thèmes



remove_theme_support ›

Depuis3.0.0
Dépréciéen/a
remove_theme_support ( $feature )
Paramètres:
  • (string) $feature The feature being removed.
    Requis: Oui
Voir:
Retourne:
  • (bool|void) Whether feature was removed.
Défini(e) dans:
Codex:

Allows a theme to de-register its support of a certain feature

Should be called in the theme's functions.php file. Generally would be used for child themes to override support from the parent theme.



Source

function remove_theme_support( $feature ) {
	// Blacklist: for internal registrations not used directly by themes.
	if ( in_array( $feature, array( 'editor-style', 'widgets', 'menus' ) ) ) {
		return false;
	}

	return _remove_theme_support( $feature );
}