Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Conditional Exclusion of a xProfile Fields Group from editing

@flegmatiq

Participant

@danbp, thank you! I tested your solution (the last function), but no success. Is enough to put this in the bp-custom.php file?

I tried the next simple function to hide the extended fields group number 2 from editing for all members, but it not working.


function flegmatiq_profiles( $retval ) {	
	
	if(  bp_is_profile_edit() ) {		
		$retval['exclude_groups'] = '2';
	}	
	
	return $retval;
	
}
add_filter( 'bp_after_has_profile_parse_args', 'flegmatiq_profiles' );
Skip to toolbar