remove_theme_support

Definition:
function remove_theme_support( $feature ) {}

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.

Parameters

  • string $feature: the feature being added

Return values

returns:Whether feature was removed.

Source code

function remove_theme_support( $feature ) {

	// Blacklist: for internal registrations not used directly by themes.

	if ( in_array( $feature, array( 'custom-background', 'custom-header', 'editor-style', 'widgets', 'menus' ) ) )

		return false;

	return _remove_theme_support( $feature );

}

2729

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: