Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Locking some profiles fields

@shanebp

Moderator

This will hide fields on the profile edit page and on the register page.
You need to add the field IDs.
Put the function in bp-custom.php.

function oazar_hide_profile_fields( $retval ) {
	
	if( is_super_admin () )
		return $retval;

	if(  bp_is_profile_edit() || bp_is_register_page() )
		$retval['exclude_fields'] = '3';	//field ID's separated by comma

	return $retval;

}
add_filter( 'bp_after_has_profile_parse_args', 'oazar_hide_profile_fields' );
Skip to toolbar