wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
remove_theme_support › WordPress Function
Od3.0.0
Przestarzałyn/a
› remove_theme_support ( $feature )
| Parametry: |
|
| Zobacz: | |
| Powrót: |
|
| Zdefiniowane na: |
|
| 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.Powiązane Funkcje: _remove_theme_support, get_theme_support, remove_theme_mod, remove_post_type_support, add_theme_support
Źródło
function remove_theme_support( $feature ) {
/*
* Do not remove internal registrations that are not used directly by themes.
* 'editor-style' (singular) is added by add_editor_style(); use remove_editor_styles().
* It is unrelated to the 'editor-styles' (plural) feature, which can be removed here.
*/
if ( in_array( $feature, array( 'editor-style', 'widgets', 'menus' ), true ) ) {
return false;
}
return _remove_theme_support( $feature );
}