wp_enqueue_script()
also registers the script. So, you’ll also need to de-register it first. This code should work depending on how and where the script is enqueued.
function my_dequeue() {
wp_deregister_script( 'ocmx-jquery' );
wp_dequeue_script( 'ocmx-jquery' );
}
add_action( 'admin_enqueue_scripts', 'my_dequeue', 10 );
You might also need to play with the priority of the action.
Related Posts:
- How to Use JSON With AJAX?
- Admin wp_ajax hook returning 0
- Edit single attachment on click (WP-admin)
- Adding a character counter to the excerpt metabox
- WP Admin missing icons, numerous JavaScript errors, but only when SCRIPT_DEBUG is false
- Returning content via jQuery without footers on admin pages
- Can’t load a class into WordPress post editor’s content field
- Unable to uncheck checkbox with jquery in wp admin
- Hide metabox dependant on page template chosen
- jQuery is missing in wp-admin
- Bypass nonce value while trashing a post
- How to isolate code to the post edit screen
- Admin side jquery is not loaded
- Using Foundation 5 in WordPress Administration Area
- Notice-Updated div moving around unprompted
- Adding JavaScript file in Admin Panel
- Applying jquery to WordPress admin edit.php
- Is there a default way in wordpress to create a overlay in the dashboard?
- Screen Options JavaScript Code
- Dashboard controls have all stopped working
- Is not using admin-ajax to ajax submissions okay?
- Uncaught TypeError: undefined is not a function (shortcode-box)
- Customize wp-admin form custom fields
- JQuery multiple toggle values
- jQuery .change() Event Bubbling in WP Admin
- Hook with jquery script is not working in wp-admin [closed]
- jQuery datepicker not showing on admin menu
- Override default options in plugin metaboxes
- JSON parsing error syntax error unexpected end of input
- How to enable CORS in flask
- Change Placeholder Text using jQuery
- Set selected option of select box
- JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”
- how to loop through JSON array in jQuery?
- jQuery – how to write ‘if not equal to’ (opposite of ==)
- Get element type with jQuery
- jQuery onclick toggle class name
- How can I create a “Please Wait, Loading…” animation using jQuery?
- $.focus() not working
- I want to enqueue a .js file to my child theme
- Adding jquery and thickbox to WordPress theme
- WooCommerce single product edit flexslider settings
- jquery & ajax getting data to php in wordpress
- AJAX returns response 0
- Hacking TinyMCE for better usability (shortcodes and html)
- WordPress Featured Post Slider
- possible to make sections in theme customizer sortable and saveable at publish button clicked?
- Twitter Bootstrap Use Collapse in Custom Post Type
- How disable checkbox when listbox value changes in tinymce
- Enqueue jQuery in WordPress
- Installing jQuery plugin to wordpress theme (Incredible)
- How do I get my page to load the jQuery UI Effects library?
- Modify this loop to fit my jQuery slider (slides)
- validate a metabox based on the category that is selected
- wp_mail very slow
- Clicking on disabled ‘add to cart’ button [closed]
- WordPress loads Jquery Automatically – is my idea correct to add it to the footer?
- How to use “show more” on a page or post to show and hide content
- Front-end Ajax File Upload
- jQuery ajax call throws an HTTP 302
- Multiple jQuery conflict unsure of why
- Jquery not working on mobile browser
- Sorting widget control
- Dukapress jQuery(“form.product_update”).livequery is not a function [closed]
- Using Bootstrap Switch with WordPress
- wp_enqueue_ scripts
- Yoast SEO breaking media upload
- jquery does’t work
- How to fix my old theme so it loads jQuery properly
- Plugin Scripts no loading on options page
- Is there some way to refactor this jQuery wrapper?
- Readonly input text appears unlocked while the page is loading
- Run JS function when JQ enqueued
- Multiple selec2.js file loaded by several plugins
- Safe method to temporarily load second jquery library to wordpress
- Drag and Drop Metadata Menu Order
- need jquery help
- WordPress Sudden Loss of All CSS And Tons of JQuery Errors
- How to enable read more by default using jquery
- Show and hide element when URL contains certain section of text?
- how to allow download after newsletter subscription?
- How to insert fancybox to multiple separate galleries in a post?
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- Notify user we would like them to clear their cookie. Provide a working button to clear cookies for user
- Call full image url instead of stylsheet directory url in JS for Infinite Scroll Function
- jQuery.post() calling function with parameter
- Passing variable data from external jQuery file to options.php
- Custom Javascript not working? [closed]
- What to do after a wrong RewriteRule?
- Jquery script not loading on site Front page
- Get selected value with PHP and jQuery
- Javascript block in Twenty Twelve theme
- jQuery drop down not appearing for autocomplete/autosuggest
- jQuery dialog prints HTML-Tags under WordPress
- TypeError: $ is not a function Error using parallax effect in WordPress Template [duplicate]
- Loading custom file based on a dependant file that is also dependant on another file
- Auto Sorting List Alphabetically
- Does anyone know how to load jquery in the footer?
- Use WordPress Built In Jquery
- Can’t seem to check off a category checkbox with jquery?