remove_theme_support( string $feature )

Allows a theme to de-register its support of a certain feature


Description

Should be called in the theme’s functions.php file. Generally would be used for child themes to override support from the parent theme.

See also


Top ↑

Parameters

$feature

(string) (Required) The feature being removed.


Top ↑

Return

(bool|void) Whether feature was removed.


Top ↑

Source

File: wp-includes/theme.php

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

Top ↑

Changelog

Version Description
3.0.0 Introduced.