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?
- Buddypress: “Auto load” specific usermeta in WP?
- Force Profile link for username, and stop “Website” field on Profile from becoming offsite link atop Comments, in “Recent Comments” list, etc
- Default Usermeta Entries for every newly created user?
- If the current user is an administrator or editor
- Editor can create any new user except administrator
- How do I add a field on the Users profile? For example, country, age etc
- How do I display logged-in username IF logged-in?
- How to allow an user role to create a new user under a role which lower than his level only?
- user_login vs. user_nicename
- How to programatically change username (user_login)?
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- Change the Author Slug from Username to Nickname
- Remove Ability for Other Users to View Administrator in User List?
- Difference between update_user_meta and update_user_option
- Make WooCommerce pages accessible for logged in users only
- Find out if logged in user is not subscriber
- WordPress usermeta scaling for thousands of users
- How to get WordPress Username in Array format
- Display user registration date
- Get multiple roles with get_users
- get_user_meta() doesn’t include user email?
- Confirmation required on email change
- How to Merge Two Authors Into One?
- Whats the best way to share user data across multiple WordPress websites?
- get_current_user_id() returns 0?
- How to get userid at wp_logout action hook?
- Groups of capabilities: users with multiple roles?
- Is there a way to merge two users?
- User-edit role setting distinct from wp_capabilities? [closed]
- List users by last name in WP_User_Query