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?
admin_head
,admin_print_scripts
,admin_enqueue_scripts
, etc. Please show us in an edit how exactly your tried to get rid of that script. What you should as well do is notifying those guys who developed that theme that it's complete crap! to do that.