Title: Code to hide warnings
Last modified: September 11, 2020

---

# Code to hide warnings

 *  Resolved [Rui Cruz](https://wordpress.org/support/users/ruicruzpt/)
 * (@ruicruzpt)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/)
 * Hello
 * Is there a funtion that can hide warnings in wp-admin?
 * Thank you, great plugin!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [cristianciuberea](https://wordpress.org/support/users/cristianciuberea/)
 * (@cristianciuberea)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13412312)
 * i need this too 😀
 *  [Juven](https://wordpress.org/support/users/juven/)
 * (@juven)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13418485)
 * We need this too
 *  Plugin Author [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13433814)
 * Hiya,
 * The warnings will go away as you resolve the issues the plugin warns about, as
   this plugin functions as a bandaid, and in a future release of WordPress (tentatively
   planned for version 5.6), this bandaid will no longer work, and the outdated 
   code would ideally need to be resolved before this.
 *  [danfrydman](https://wordpress.org/support/users/danfrydman/)
 * (@danfrydman)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13448919)
 * Hey Marius, while I understand that we need to sort the sites that have the error
   on them, one page on a client site had 26 items coming up on some page loads 
   in admin – so we had to do something about it.
 * For others struggling with this.
 * In the plugin, you can edit the code. Note that when the plugin updates, you 
   will need to do this again.
 * In the class-jquery-migrate-helper.php file go down to
 * HTML for jQuery Migrate deprecated notices
 * Comment out the following
 * <div class=”notice notice-error is-dismissible jquery-migrate-deprecation-notice
   hidden”>
 * This is a hacky hack as it leaves the function running, but it suppresses the
   display of the warning.
 * I’m sure our techs will find a better way to do this than the HTML type hack 
   I’ve implemented!
 * This is mainly happening for an old page builder that’s still part of a live 
   site, but that will be gone by the time WP 5.6 comes around.
 *  [Marty](https://wordpress.org/support/users/bozzmedia/)
 * (@bozzmedia)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13500730)
 * Hopefully the plugin devs consider making the notices dismissable so folks don’t
   need to do workarounds like this.
 * You can also target the CSS class ‘jquery-migrate-deprecation-notice’ in backend
   styles to hide this notice.
 * Not sure how to do that? See here:
    [https://css-tricks.com/snippets/wordpress/apply-custom-css-to-admin-area/](https://css-tricks.com/snippets/wordpress/apply-custom-css-to-admin-area/)
    -  This reply was modified 5 years, 8 months ago by [Marty](https://wordpress.org/support/users/bozzmedia/).
 *  Plugin Author [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * (@clorith)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13517205)
 * Hiya,
 * You may wish to give [https://wordpress.org/support/topic/option-to-hide-that-warnings/#post-13517204](https://wordpress.org/support/topic/option-to-hide-that-warnings/#post-13517204)
   a read regarding this ask 🙂

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Code to hide warnings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/enable-jquery-migrate-helper.svg)
 * [Enable jQuery Migrate Helper](https://wordpress.org/plugins/enable-jquery-migrate-helper/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-jquery-migrate-helper/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-jquery-migrate-helper/reviews/)

 * 6 replies
 * 6 participants
 * Last reply from: [Marius L. J.](https://wordpress.org/support/users/clorith/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/code-to-hide-warnings/#post-13517205)
 * Status: resolved