wp_dequeue_script()
wp_dequeue_script( string $handle ) 删除先前排队的脚本。 Remove a…
wp_dequeue_script( string $handle )
删除先前排队的脚本。
Remove a previously enqueued script.
删除先前排队的脚本。
Remove a previously enqueued script.
目录锚点:#说明#参数#源码#笔记
说明(Description)
另请参阅WP_Dependencies::dequeue()
参数(Parameters)
| 参数 | 类型 | 说明 |
|---|---|---|
| $handle | (string) | 要删除的脚本的名称。 |
源码(Source)
/**
* Remove a previously enqueued script.
*
* @see WP_Dependencies::dequeue()
*
* @since 3.1.0
*
* @param string $handle Name of the script to be removed.
*/
function wp_dequeue_script( $handle ) {
_wp_scripts_maybe_doing_it_wrong( __FUNCTION__ );
wp_scripts()->dequeue( $handle );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 3.1.0 | wp-includes/functions.wp-scripts.php | 10 | 15 |
笔记(Notes)
使脚本出列
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。





还没有任何评论,赶紧来占个楼吧!