W3cubDocs

/WordPress

wp_deregister_style( string $handle )

Removes a registered stylesheet.

Description

See also

Parameters

$handlestringrequired
Name of the stylesheet to be removed.

Source

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

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

Changelog

Version Description
2.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_deregister_style