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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.