Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @jowaltham

    Participant

    @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.

    @jowaltham

    Participant

    Good point. I’ve added a readme.md and a readme.txt.

    @jowaltham

    Participant

    @jowaltham

    Participant

    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.

    @jowaltham

    Participant

    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;
     }
Viewing 5 replies - 1 through 5 (of 5 total)
Skip to toolbar