You can hide profile fields on the edit screen from everyone except site admins – therefore they can only be edited by site admins. They will still be visible on the public profile screen. You can get the field id by looking at the url in wp-admin when you edit that field, or just rolling over the edit button. Add this function to your child-theme functions.php or bp-custom.php
function arcee_hide_profile_fields( $retval ) {
if( is_super_admin () )
return $retval;
if( bp_is_profile_edit() )
$retval['exclude_fields'] = '3,43,253'; //field ID's separated by comma
return $retval;
}
add_filter( 'bp_after_has_profile_parse_args', 'arcee_hide_profile_fields' );
Related Posts:
- Forcing WordPress to work differently
- How to display text if profile fields are not filled?
- redirect user to their profile after log in
- Make display name unique
- How to create a public profile for authors/contributors/users?
- Force users to complete their profile after they register? How to
- Upload gravatar in WP profile?
- BuddyPress | Check if user is in current group [closed]
- Redirect after User Activation [closed]
- add ‘file upload’ field to user details
- Completely hide user info
- Drop down list in user profile page
- Buddypress – Send New User Activation Link to Admin [closed]
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- Changing default Buddypress avatar affects all site avatars (because gravatar)
- Custom style on profile options page
- Add custom fields to the user profile
- Cannot set user passwords
- List User Comments on User Profile BuddyPress [closed]
- Is there any function available to echo current user’s profile url?
- How to add local users to wordpress without email password?
- Disable user profile editing for one user
- Remove user profile field [duplicate]
- How to add a user profile page to frontend?
- Is there a way to make custom fields only editable by administrators?
- Editable registration date field in user profile
- Profile page for user roles
- User profile updates password even if not filled (Theme my login) in Firefox? [closed]
- How to Create a User Profile Page?
- Prevent subscribers to changing certain profile fields
- Creating User Profiles using author.php
- Create a “user log”
- What is correct way to change user’s email?
- How to hide user profile fields based on the role of the viewed user?
- How to make current user’s avatar + display name link to their profile?
- Change user slug in Buddypress
- Give users alternative/second avatar that is rectangle sized
- User can manage one page accessible by everyone?
- How to display all user profile info in myaccount page wordpress
- How to add extra field in profile page and show in myaccount?
- wp_delete_user – huge overhead in Buddypress?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- How do I update user email from frontend input field?
- How to display extra fields for user
- I need a link that directs the user that is logged to his profile
- How can i display pagination in custom comment list?
- How can i add user display name drop down menu in frontend?
- How to create page for user?
- How to make custom user profile page public?
- update custom field user profile from front end form
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Showing extra profile fields in admin – problem with underscore
- Restrict Access to the User Profile
- Add an ‘edit profile’ page with Genesis
- Set user role on registration so can upload file to own media library area
- Manage user profiles with WordPress
- Separate Profiles for Users
- Fetching posts that match a User Profile setting
- How to create a link to a user’s profile page
- Validate user meta and redirect
- Designing a member area on my site
- Does WordPress Need BuddyPress to Handle Large Amounts of Users?
- Storing additional information about the user
- Modify Profile Biographical Info Field
- Buddypress – New user type with no profile and can’t interact but can be admin of a group
- How to create front-end (editable) WordPress user profile pages?
- Disable editing profile for second time
- What techniques can a user employ to achieve a password rated “strong” in the WordPress password checker
- Cant edit profile from frontend
- Can we get user profile page using user_id in the URL?
- Find out if logged in user is not subscriber
- Get multiple roles with get_users
- How to Merge Two Authors Into One?
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Disallowing Users of a Custom Role from Deleting or Adding Administrators?
- What the user_status column?
- Change user’s display name programmatically
- Set user after wp_create_user?
- Sort get_users by custom field
- How to add wordpress username after url?
- User fields that can be edited by administrator?
- Can’t add users in admin after copying database
- How to delete user on logout and when session expires?
- wordpress disable login for unverified user
- Problem with automatic role change through cron job
- No more administrator roles / permissions after WordPress upgrade
- Order users by user role
- Get user by meta key – WP multi site
- Assigning multiple or additional capabilities to specific users or how to create additional roles like bbpress roles?
- Using my own user table
- How can I add authors in WordPress and assign them a picture?
- Get users meta and show to attribute
- How do I delete a wordpress user from giant database?
- Update user counts in admin interface
- Username has been exposed
- How To Find The ID Of All Registered Users?
- How to order posts by the user_login that corresponds to a meta_value (which is a user id)?
- Adding custom HTML to each profile group tab [closed]
- hide woo commerce dashboard status and reports from woo commerce from specific users but display to other users
- Sorting Users page admin column with ACF field