wp_deregister_style

函数


wp_deregister_style ( $handle )
参数
  • (string)
    $handle
    Name of the stylesheet to be removed.
    Required:
相关
  • WP_Dependencies::remove()
定义位置
  • wp-includes/functions.wp-styles.php
    , line 144
引入
2.1.0
弃用

Remove a registered stylesheet.

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

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