Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



remove_theme_support ›

Seit3.0.0
Veraltetn/v
remove_theme_support ( $feature )
Parameter:
  • (string) $feature The feature being removed.
    Erforderlich: Ja
Siehe:
Gibt zurück:
  • (bool|void) Whether feature was removed.
Definiert in:
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.



Quellcode

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