Dequeue / Deregister script and replace it with a new plugin
Please try below code – function fixUlisting() { wp_deregister_script( ‘stm-search-form-category’ ); wp_dequeue_script( ‘stm-search-form-category’ ); wp_enqueue_script( ‘stm-search-fix’, plugins_url().’/ulisting-search-fix/stm-search-fix.js’ ); } add_action( ‘wp_enqueue_scripts’, ‘fixUlisting’, 100 );