@jowaltham
1 year, 9 months ago
@mahaprabhu I don’t know. I created that plugin for one particular website which is no longer in use so I’ve not tested it with any recent BuddyPress plugins. Please give it a try and let me know.
8 years ago
Good point. I’ve added a readme.md and a readme.txt.
Thanks for the tips @danbp this is what I produced:
https://github.com/calliaweb/Moderate-Buddypress-xProfile-Changes/
Thank you Henry, I’ve changed that.
I’ve put my full code on github https://github.com/calliaweb/Moderate-Buddypress-xProfile-Changes/ but I’ll start another thread here asking for feedback on that.
Oh I think I’ve got it 🙂
add_filter( 'bp_current_user_can', 'jmw_permit_admin_to_edit_field_visibility', 10, 4 ); function jmw_permit_admin_to_edit_field_visibility( $retval, $capability, $blog_id, $args ) { if( 'bp_xprofile_change_field_visibility' == $capability && is_super_admin() ) { $retval = true; } return $retval; }