Skip to:

Custom Signup Fields

  • Avatar of hardlyneutral


    I’m pulling my hair out on this problem and it is problem something super easy that I’m missing as I’m new to BuddyPress. I’m trying to create a plugin that allows users to select some groups during the registration process that they can join after activation. I have everything set up to get them into the groups once they activate, my issue is that I can’t seem to store the group IDs they selected in the meta filed of wp_signups until they actually activate. I’m using the following code to create the list of groups and checkboxes:

    function bp_registration_group(){

    <ul class=”reg_groups_list”>

    <?php $i = 0; ?>

    <?php if ( bp_has_groups() ) : while ( bp_groups() ) : bp_the_group(); ?>

    <li class=”reg_groups_item”>

    <input type=”checkbox” id=”field_<?php echo 51+$i; ?>_<?php echo $i; ?>” name=”field_50[]” value=”<?php bp_group_id(); ?>” /><?php bp_group_name(); ?>

    <?php $i++; ?>

    <?php endwhile; endif; ?>


    add_action(‘bp_before_registration_submit_buttons’, ‘bp_registration_group’);

    The checkboxes all show up fine on the signup page but when I check the wp_signups table, I don’t see the array of data I’m expecting. Any help would be greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.