admin管理员组

文章数量:1302292

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I'm using social sign up buttons on my Wordpress site to register/sign in using Google, FB, TW...

When they are logged in, this notice appear on the top of the Wordpress dashboard:

Notice: You’re using the auto-generated password for your account. Would you like to change it?

Is it possible to remove this notice?

It's misleading users.

Thank you.

Closed. This question is off-topic. It is not currently accepting answers.

Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.

Closed 4 years ago.

Improve this question

I'm using social sign up buttons on my Wordpress site to register/sign in using Google, FB, TW...

When they are logged in, this notice appear on the top of the Wordpress dashboard:

Notice: You’re using the auto-generated password for your account. Would you like to change it?

Is it possible to remove this notice?

It's misleading users.

Thank you.

Share Improve this question edited Mar 2, 2021 at 22:31 phatskat 3,1741 gold badge18 silver badges26 bronze badges asked Mar 2, 2021 at 17:54 robert0robert0 2032 silver badges11 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Similar to @robert0's answer, you can unhook the nag from happening:

remove_action( 'profile_update', 'default_password_nag_edit_user', 10 );

Just put that in your theme's functions.php and that should take care of it.

Found the solution.

This will remove all the notices for your registered WordPress users, except admins:

function hide_update_noticee_to_all_but_admin_users()
{
    if (!is_super_admin()) {
        remove_all_actions( 'admin_notices' );
    }
}
add_action( 'admin_head', 'hide_update_noticee_to_all_but_admin_users', 1 );

Add the above code to functions.php

本文标签: