WordPress at a glance

wp_deregister_style() WP 1.0

Remove a registered stylesheet.

  • See: WP_Dependencies::remove()

No Hooks.

Return

Nothing (null).

Usage

wp_deregister_style( $handle );
$handle(string) (required)
Name of the stylesheet to be removed.

Code of wp deregister style: wp-includes/functions.wp-styles.php VER 5.0.3

<?php
function wp_deregister_style( $handle ) {
	_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );

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

Related Functions

From tag: styles (include files)

More from category: Scripts and Styles

No comments
    Hello, !     Log In . Register