Description
Easily set the visibility of BuddyPress profile fields to hidden, allowing only admin users to edit and view them.
GitHub
If you would like to contribute to the plugin, you can do so on GitHub.
Installation
- Upload
bp-admin-only-profile-fields
to the/wp-content/plugins/
directory. - Activate the plugin through the โPluginsโ menu in WordPress.
FAQ
- How do I hide a profile field?
-
In the WordPress admin area, go to Users > Profile Fields and click Edit on the desired profile field. Under the Default Visibility panel select Hidden as the value and click Save.
The profile field is now hidden from all users except Administrators.
- How do I change who can view and edit the hidden field?
-
Add the following filter to your themeโs functions.php file, substituting edit_others_posts with the desired capability:
function custom_profile_fields_visibility() {
return โedit_others_postsโ; // Editors
}
add_filter( โbp_admin_only_profile_fields_capโ, โcustom_profile_fields_visibilityโ );
Reviews
Contributors & Developers
“BuddyPress Admin Only Profile Fields” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “BuddyPress Admin Only Profile Fields” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.2
- New: Added โEveryone (Admin Editable)โ field visibility level
- New: Added โOnly Me (Admin Editable)โ field visibility level
- Bug fix: Issues with JS due to admin visibility settings change from checkboxes to selects
- Bug fix: Issue with JS where visibility settings disappear when โHiddenโ selected
- Bug fix: Issue with breaking standard BuddyPress Visibility options
1.1.1
- Fix fatal error on activation
- Adhere to WordPress coding standards
1.1
- Hide the Per-Member Visibility options when the Default Visibility is set to Hidden
1.0
- Initial release