wp_deregister_style() WordPress Function

The wp_deregister_style() function allows you to deregister a stylesheet that has been registered with WordPress. This function takes a single parameter, which is the handle of the stylesheet to be deregistered.

wp_deregister_style( string $handle ) #

Remove a registered stylesheet.


Description

Top ↑

See also


Top ↑

Parameters

$handle

(string)(Required)Name of the stylesheet to be removed.


Top ↑

Source

File: wp-includes/functions.wp-styles.php

function wp_deregister_style( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__, $handle );

	wp_styles()->remove( $handle );
}


Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.