Uses
Uses | Description |
---|---|
wp-includes/theme.php: _remove_theme_support() | Do not use. Removes theme support internally without knowledge of those not used by themes directly. |
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.
(string) (Required) The feature being removed. See add_theme_support() for the list of possible values.
(bool|void) Whether feature was removed.
File: wp-includes/theme.php
function remove_theme_support( $feature ) { // Do not remove internal registrations that are not used directly by themes. if ( in_array( $feature, array( 'editor-style', 'widgets', 'menus' ), true ) ) { return false; } return _remove_theme_support( $feature ); }
Version | Description |
---|---|
3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/remove_theme_support