Un motore di ricerca WordPress per sviluppatori e autori di temi



remove_theme_support ›

Da3.0.0
Deprecaton/a
remove_theme_support ( $feature )
Parametri:
  • (string) $feature The feature being removed.
    Richiesto:
Vedi:
Ritorna:
  • (bool|void) Whether feature was removed.
Definito a:
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.



Sorgenti

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