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



remove_theme_support ›

Desde3.0.0
Obsoleton/a
remove_theme_support ( $feature )
Parâmetros:
  • (string) $feature the feature being added
    Required: Yes
Ver:
Retorna:
  • (bool|void) Whether feature was removed.
Definido em:
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.



Fonte

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