How to hide WordPress updates admin messages in the dashboard

How to hide WordPress updates admin messages in the dashboard

It is very important to keep WordPress up to date because of security threats and other backend functionalities, specially now a days due to its popularity. Some cases we made lots of customisations on core WordPress files, then might not want this message to displayed, because it will overwrite all the files and client site will lost all the changes. Below you can find a code snippet to hide dashboard admin notices you just need to add it into the function.php file or you can create a WordPress plugin with the code below.

add_action('admin_menu','ns_wphidenag');
function ns_wphidenag() {
 remove_action( 'admin_notices', 'update_nag', 3 );
}

ABOUT AUTHOR

Nuno

I am a Freelance Web Developer and WordPress Expert based in London with a wealth of website development and support experience. I am great at problem solving and developing quick solutions.

  • LET'S TALK!

    Fill in the form below to make an enquiry or find my contact details on my contact page.

  • This form collects your name and email address so that I can respond to the enquiry(ies) that you submit via this website. Please check my privacy policy for the full story on how I use, protect and manage your submitted data.