You can try
if( current_user_can( 'subscriber' ) ) {
add_filter( 'show_password_fields', '__return_false' );
}
see also
http://wpengineer.com/2285/disable-password-fields-for-non-admins/
Related Posts:
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- Specific way to allow WordPress users to view their current password? And edit it?
- How to give access to the particular page in wordpress for specific username/email NOT roles [closed]
- Can’t Install Standard Plugins on a Local MAMP installation
- Add menu page issues (permissions & position)
- edit_user_profile and show_user_profile are not firing inside a class
- Advanced Custom Fields – Disable Users to Edit Custom Fields
- How to create multiple users at once?
- Shortcode to update user meta
- Completely disabling password reset/recovery
- Multisite – maximum number of users with specific role
- Is there any way to make myself an admin?
- How do I get the user ID of the user that was updated in WordPress?
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Understanding State in WordPress Multisites
- How to have sample page for each new register users in a membership website
- How to get all posts belongs to a user between a certain date
- how can I query all wordpress users of a blog
- Add Content to Content()
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- Is there a plugin for WordPress for creating ‘Accounts’ where all users who belong to that Account can only see Account data? [closed]
- Add User Role: Pre-saved in User-Meta [SOLVED]
- WordPress won’t allow for updates to plugins or WordPress Core
- get_users(); Is an Undefined Function When Used in Cron Job
- WordPress permissions error with admin account
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- How limit user connection?
- Custom Login page with custom redirects for each user?
- how to make dynamic subdomain for each user registering?
- How to pass a query string to another page on the same site?
- Plugins & backup not working correctly on new Digital Ocean server
- WordPress /users/me endpoint request forbidden
- Mutliple users editing single document in wordspress
- Plugin: connect to external database without showing password
- Remove specific administrator’s capability
- Plugin permissions for Editor role
- Personalized Author Area
- How to auto strip hyperlinks & images in wordpress post
- Completely remove ability to create users?
- Role based permission edit for plugins
- Creating teams of users in WordPress
- WordPress plugin for Limited days user
- How to hide plugin options for editors via functions.php
- Plugin privelages for “editors”
- How to write to the plugin’s directory?
- Shortcode not displaying HTML within the function
- Janrain/Simple Modal under Redirected Domain
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Disable Author Archive just for certain roles in bulk
- Auto populate a user custom field from another user custom field
- Create Woocommerce account password post-checkout on thank you page
- See which user role / capability is needed to use a plugin
- Can we hide a certain user in WP?
- How to implement data residency in my WordPress site
- how to create user profile pages and display them based on users roles
- Clean old users
- Automatic chage password of pages after some time
- After reading 3 story by user ask for subscription popup
- wp_set_password() does not work!
- Plugin updates, change file permissions on WordPress
- User updating their profile wipes my custom fields
- Login/password protected “client page”
- Comment restrictions Wodpress
- How To Export User’s Custom Fields in CSV or XLSX
- Login issue in WordPress
- How to make a page both “private” and “password protected”
- Password Protect wp-content?
- Get all user meta_keys and then group users by matching values
- How to make a plugin api route have permission?
- On button click, redirect users to registration page instead of another page
- Searchable Semi Random Number Generator on User Profiles
- How do I run my custom function in my plugin when a wordpress user is deleted?
- Can’t add or delete plugins – but I’m an admin [closed]
- Members-only page, but accessible via sharable link
- How can I store user preferences in WordPress and retreive them later?
- WP Plugin permissions – create new files
- Simulate Update User button click
- Create password protected page, no registration
- Update User Meta Via Ajax
- User Following System
- Cant visualize protected password portfolio elements
- Permission Issues regarding Plugin updates & FTP transfers
- User / membership Plugin [closed]
- How to see in Edit Comments if comment is from User and her Roles
- WordPress Plugin Install / Update Problem
- Custom User Notice Upon Login
- Database error when user logs in
- WordPress FTP/media directory permissions problem?
- How can I save cookies to members
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- Paid Memberships Pro, Display User Limit
- Confusing problem with displaying message recipient metadata
- Every time I use wp_get_current_user() my plugin breaks
- Admin page and admin menu. Permissions plugin
- How to order users alphabetically by name? in plugin UPME
- SSH vs WordPress
- Users Ultra: Hide asterisk for required registration fields?
- Defined user role to access plugin’s pages
- Images not showing on homepage after migration [duplicate]
- page creator to leave comments ONLY