Hello Kalpesh,
Thank you for posting here. Please use the following code in your bp-custom.php file to hide fields on register page.
function buddydev_filter_register_fields( $r ) { if ( bp_is_register_page() ) { $r['exclude_fields'] = 2; // Comma-separated list of profile field IDs to exclude. } return $r; } add_filter('bp_after_has_profile_parse_args','buddydev_filter_register_fields' );
Thank You
RaviYou should use
$r['exclude_fields'] = '2,3';// It should be inside the quote.
Hope that helps.
Viewing 6 posts - 1 through 6 (of 6 total)
The topic ‘ [Resolved] Hide some profile field from Register Form’ is closed to new replies.
This topic is: resolved