Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1302292
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 questionI'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 questionI'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 badges2 Answers
Reset to default 1Similar 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
本文标签:
版权声明:本文标题:dashboard - How to remove: Notice: You’re using the auto-generated password for your account. Would you like to change it? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741711567a2393874.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论