wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_deregister_style › WordPress Function

Since2.1.0
Deprecatedn/a
wp_deregister_style ( $handle )
Parameters:
  • (string) $handle Name of the stylesheet to be removed.
    Required: Yes
See:
  • WP_Dependencies::remove()
Defined at:
Codex:

Removes a registered stylesheet.



Source

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

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