Support » Plugin: BuddyPress Registration Options » Show more additional info?

  • Resolved regeisle


    With a BP registration we’re collection additional fields like Address, Phone, etc. This is a neighborhood community and those fields are used by managers to confirm someone is a resident before approving their account.

    I saw a note in changelog a few versions back about adding Additional Info to the main pending members table, but it seems to just show City and IP, and no other fields we’ve added. Is there a setting, or simple plugin tweak, that could get that added? Right now they need to click each member to go to their profile, click again to see their address and then back to admin to approve which gets tedious when there’s several pending.

    Any input would be appreciated, thanks!


Viewing 1 replies (of 1 total)
  • Plugin Author Michael Beckwith


    The BenchPresser

    In that “additional information” table cell, we have an action as shown below:

     * Fires in the last table cell in pending member list.
     * @since 4.3.0
     * @param int $value Pending user ID.
    do_action( 'bpro_hook_member_item_additional_data', $pending->user_id ); ?>

    With it, you could add a callback to that action hook, and accept the user ID being displayed for that row, and use that to add some extra information to be output in it.

    Example screenshot, should be clickable if hard to read:

    Screen Shot

    Very basic code example:

    function regeisle_additional_user_info( $user_id ) {
    	$field_one = xprofile_get_field_data( 1, $user_id );
    	echo wpautop( $field_one );
    add_action( 'bpro_hook_member_item_additional_data', 'regeisle_additional_user_info', 10, 1 );

    Whatever you can grab with the provided user_id variable, you can output in that table cell, formatted however which way you want.

Viewing 1 replies (of 1 total)
  • The topic ‘Show more additional info?’ is closed to new replies.