There is a theme my client is using. It enqueues many scripts in the admin area of wordpress. I'd like to dequeue these so that my plugin works properly.
Commenting out this code
wp_enqueue_script( "ocmx-jquery", get_template_directory_uri()."/scripts/ocmx.js", array( "jquery" ) );
makes my plugin work properly. So rather than edit their code, I want to add the following to my plugin
wp_dequeue_script( 'ocmx-jquery' );. I've added that, and it's as if I never did.
Is there a better way to tell the theme's JS not to load in my plugins settings page?