WordPress开发者和主题制作者的搜索引擎



wp_deregister_style ›

Since2.1.0
已弃用n/a
wp_deregister_style ( $handle )
参数:
  • (string) $handle Name of the stylesheet to be removed.
    Required: Yes
查看:
  • WP_Dependencies::remove()
定义在:
文档:

Remove a registered stylesheet.



源码

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

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