we know that when a new version of wordpress released then an update warning is displayed all of wordpress administrator and all of your users. like this:
all the times this kinds of warning is not good for your site or blog. if a hacker know your wordpress version number then hacking is so easy for him. although hacker dont know your wordpress sites version number but if he see update warning then he understand that your wordpress version is not updated and obviously previous version. then he will attack a little bit relaxed. so we should hide our wordpress update warning from all of users. for this copy bellow code:
After copy code paste it in to you themes 'functions.php' file and save it. now your wordpress not show update warning all your users except you(admin).
Thanks.
all the times this kinds of warning is not good for your site or blog. if a hacker know your wordpress version number then hacking is so easy for him. although hacker dont know your wordpress sites version number but if he see update warning then he understand that your wordpress version is not updated and obviously previous version. then he will attack a little bit relaxed. so we should hide our wordpress update warning from all of users. for this copy bellow code:
function wp_hide_update() {PROBLEM COPY CODE? TRY HERE.
global $current_user;
get_currentuserinfo();
if ($current_user->ID != 1) { // only admin will see it
remove_action( 'admin_notices', 'update_nag', 3 );
}
}
add_action('admin_menu','wp_hide_update');
After copy code paste it in to you themes 'functions.php' file and save it. now your wordpress not show update warning all your users except you(admin).
Thanks.
0 comments:
Post a Comment
Comments here