• Hi there, we run a wholesale website and rather than having users wait in a queue to get approved I was looking to auto-approve them if one of two fields is filled out (EIN/Sale & Use).

    Is this possible to do?

Viewing 1 replies (of 1 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @techn0guy

    Please try following code snippets:

    add_action( 'um_user_register', function( $user_id, $args ){
    
        $field = get_user_meta( $user_id,'field_meta_key',true );
        if( $field ){
            um_fetch_user( $user_id );
    	    UM()->user()->approve();
    	    um_reset_user();
        } 
        
    }, 2, 2 );

    This is just an example to show you what can be done, please modify the codes for your requirement.

Viewing 1 replies (of 1 total)
  • The topic ‘Automatically Approve Member Based on Fields?’ is closed to new replies.