Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • kiekers
    Participant

    @kiekers

    Something along the line of this will work. Just posting the solution here in case someone is also looking for this. I am unsure about what the parameter for page size is, so you might just want to look that up.

    function update_db_users()
    {
    	 if ( bp_has_members('page_size=1000') ) :
        while ( bp_members() ) : bp_the_member(); 
        
       
     
        $some_field = xprofile_get_field_data( 'some field', bp_get_member_user_id() );
        if ( $some_field != '66' )
            {
    	     xprofile_set_field_data( 'Registration Type', bp_get_member_user_id(), 'new value', $is_required = false )   
            }
        
           
             endwhile;
        endif;
    }
Viewing 1 replies (of 1 total)
Skip to toolbar