wp_deregister_style()

目录

    与 wp_register_style() 对应, wp_deregister_style() 用于移除注册的样式文件。

    该函数的语法是:

    wp_deregister_style( string $handle )

    $handle:字符串(必填)。要移除的脚本名称。

    该函数同样定义在 wp-includes/functions.wp-styles.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/

    0 条回复 A文章作者 M管理员
      暂无讨论,说说你的看法吧
    个人中心
    购物车
    优惠劵
    今日签到
    有新私信 私信列表
    搜索