Trying to disable slider for WooCommerce price filter [closed]

This script is localized and registered, so you’re going to need to use wp_deregister_script() instead of wp_dequeue_script(). Also, you need to use the function add_action() instead of add_filter() for this. Think of add_action as a way to inject run-able code into an existing function and think of add_filter as a way to manipulate the returned output of an existing function.

function remove_slider() {
     wp_deregister_script( 'wc-price-slider' );
}    
add_filter( 'wp_enqueue_scripts', 'remove_slider' );

the above works on my current install.