与 wp_register_style() 对应, wp_deregister_style() 用于移除注册的样式文件。该函数的语法是:
$handle:字符串(必填)。要移除的脚本名称。
该函数同样定义在 wp-includes/functions.wp-styles.php 文件中,具体代码如下:
参考文档:https://developer.wordpress.org/reference/functions/wp_deregister_style/
与 wp_register_style() 对应, wp_deregister_style() 用于移除注册的样式文件。该函数的语法是:
$handle:字符串(必填)。要移除的脚本名称。
该函数同样定义在 wp-includes/functions.wp-styles.php 文件中,具体代码如下:
参考文档:https://developer.wordpress.org/reference/functions/wp_deregister_style/
之前