I am trying to remove some script files added by wordpress. However, the code I wrote does not work. Where am I doing wrong? Can you show me the way?
I looked at many sources. But I couldn't find an answer for the ui. I have used the wp_dequeue_script function many times. But it doesn't work for Wordpress.
child theme function.php
add_action( 'wp_enqueue_scripts', 'a_remove_some_js');
function a_remove_some_js() {
//wp_dequeue_script( 'jquery-ui-core-js');
//wp_dequeue_script( 'jquery-ui-tooltip-js');
wp_dequeue_script( 'jquery-ui-core');
wp_dequeue_script( 'jquery-ui-tooltip');
}