WordPress at a glance

remove_theme_support() WP 1.0

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.

  • See: add_theme_support()

No Hooks.

Return

true/false/null. Whether feature was removed.

Usage

remove_theme_support( $feature );
$feature(string) (required)
the feature being added

Code of remove_theme_support: wp-includes/theme.php VER 4.9.8

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

Related Functions

From tag: Theme supports (theme_support)

More from category: Other Theme Functions

No comments
    Hello, !     Log In . Register