Support

Account

Home Forums General Issues Get values from registration form Reply To: Get values from registration form

  • Thanks for your response I managed to to solve this by doing the following

    $user_company = get_field('reg_company_name', 'user_' . $user_id);

    $my_distributor_post = array(
        	'post_type' => 'distributer_search',
            'post_title' => '$user_company',
            'post_content' => '',
            'post_status' => 'draft',
            'post_author' => $user_id,
        );

    This works because the post is generated after the user is created.