Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: How add filter to bp_the_profile_group_field_ids?

@danbp

Participant

Hi @SimpleOne,

read from line 154 in bp-xprofile-classes.php file. It contains many information for what you want to do.
See also on Codex here and here

You can also revert your changes back and use this kind of function (goes into theme’s functions.php or bp-custom.php):

function simple_one_hide_some_profile_fields( $retval ) {	
	
	if(  bp_is_profile_edit() ) {		
		$retval['exclude_fields'] = '48';	//field ID's separated by comma
		
	}	
	
	return $retval;
	
}
add_filter( 'bp_after_has_profile_parse_args', 'simple_one_hide_some_profile_fields' );

May this help ? 😉

Skip to toolbar