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



wp_dequeue_script ›

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

Remove a previously enqueued script.



源码

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

	wp_scripts()->dequeue( $handle );
}