remove_theme_support() – Allows a theme to de-register its support of a certain feature

You appear to be a bot. Output may be restricted

Description

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.

Usage

$bool|void = remove_theme_support( $feature );

Parameters

$feature
( string ) required – The feature being removed. See add_theme_support() for the list of possible values.

Returns

bool|void Whether feature was removed.

Source

File name: wordpress/wp-includes/theme.php
Lines:

1 to 8 of 8
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 );
}
 

 View on GitHub View on Trac