A WordPress-centric search engine for devs and theme authors



wp_dequeue_style ›

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

Remove a previously enqueued CSS stylesheet.



Source

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

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