Skip to:
Content
Pages
Categories
Search
Top
Bottom

Show ‘Extended Profile’ fields under ‘Manage Signups’

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

  • navyspitfire
    Participant

    @navyspitfire

    Bump on this, having the same issue. Trying to see registration fields (mainly the gravatar) as well as some xprofile fields (file uploads) before activating them.


    shanebp
    Moderator

    @shanebp

    To show xprofile fields, you could do this:

    // add the custom column header
    function philopress_modify_user_columns($column_headers) {
    
            $column_headers['extended'] = 'Meta Fields';
      
            return $column_headers;
    }
    add_action('manage_users_page_bp-signups_columns','philopress_modify_user_columns');
    
    // dump all the pending user's meta data in the custom column
    function philopress_signup_custom_column( $str, $column_name, $signup_object ) {
    
    	if ( $column_name == 'extended' ) 
                 return print_r( $signup_object->meta, true );
    
            return $str;
    }
    add_filter( 'bp_members_signup_custom_column', 'philopress_signup_custom_column', 1, 3 );

    If you only want to show specific meta fields, you need to know the field id(s).
    Then you could do this:
    return $signup_object->meta['field_4472'];

    GIST

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar