最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

password - Create Member who can't be changed

programmeradmin2浏览0评论

we need on single account which we may share with a group of people. we don't want that tey are able to change anything (password, name). They sould only view some protected information. We can't use possword protection, because this is to insecure (keeps saved in browser for 10 days).

Here is what I found:

add_action( 'load-profile.php', 'd_disable_editing_my_profile' ); - to prevent changing profile add_filter('login_redirect', 'admin_default_page'); - to redirect users

What did not work for us: prevent password-reset link only for this users + redirect other users to dashboard instead main page.

Is there a plugin or something else that could solve this?

we need on single account which we may share with a group of people. we don't want that tey are able to change anything (password, name). They sould only view some protected information. We can't use possword protection, because this is to insecure (keeps saved in browser for 10 days).

Here is what I found:

add_action( 'load-profile.php', 'd_disable_editing_my_profile' ); - to prevent changing profile add_filter('login_redirect', 'admin_default_page'); - to redirect users

What did not work for us: prevent password-reset link only for this users + redirect other users to dashboard instead main page.

Is there a plugin or something else that could solve this?

Share Improve this question asked Apr 3, 2020 at 22:07 CaresindCaresind 93 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

This is really hacky but you could just hide those fields with css and toggle them as needed.

发布评论

评论列表(0)

  1. 暂无评论