删除已注册的样式表。
原型
wp_deregister_style( string $handle )
参数
$handle
(string)
(Required)
要删除的样式表的名称。
源文件
路径:wp-includes/functions.wp-styles.php
<?php
...
function wp_deregister_style( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
wp_styles()->remove( $handle );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/wp_deregister_style/