如果要删除Effect Core,也必须删除依赖的脚本。按照以下步骤删除它们:
add_action( \'wp_enqueue_scripts\', \'remove_jquery_effects\', 100 );
function remove_jquery_effects()
{
wp_dequeue_script( \'jquery-effects-core\' );
wp_dequeue_script( \'jquery-effects-blind\' );
wp_dequeue_script( \'jquery-effects-bounce\' );
wp_dequeue_script( \'jquery-effects-clip\' );
wp_dequeue_script( \'jquery-effects-drop\' );
wp_dequeue_script( \'jquery-effects-explode\' );
wp_dequeue_script( \'jquery-effects-fade\' );
wp_dequeue_script( \'jquery-effects-fold\' );
wp_dequeue_script( \'jquery-effects-highlight\' );
wp_dequeue_script( \'jquery-effects-pulsate\' );
wp_dequeue_script( \'jquery-effects-scale\' );
wp_dequeue_script( \'jquery-effects-shake\' );
wp_dequeue_script( \'jquery-effects-slide\' );
wp_dequeue_script( \'jquery-effects-transfer\' );
}
将此添加到
functions.php
文件这是从前端删除脚本。