A WordPress-centric search engine for devs and theme authors



wp_deregister_style ›

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:

Remove a registered stylesheet.



Source

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

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