wp_dequeue_script

函数


wp_dequeue_script ( $handle )
参数
  • (string)
    $handle
    Name of the script to be removed.
    Required:
相关
  • WP_Dependencies::dequeue()
定义位置
  • wp-includes/functions.wp-scripts.php
    , line 375
引入
3.1.0
弃用

Remove a previously enqueued script.

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

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