How to hide WordPress updates admin messages in the dashboard

 In Functions, Wordpress Admin

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 );
}
Recommended Posts

Start typing and press Enter to search