I had a previous question about being able to approve new users before they get their account.
Need some advice and maybe tips. I thought you might be able to make 2 separate forms. One where you send a request to become a member on the page. When I receive a request that I want to approve, I reply with a message / email with the link to the registration form. That is hidden for other visitors of the website.
If it works, do you have a good solution to the first form? That you can reply directly from the admin dashboard with a link to the registration form?
And that link, can it be unique to any prospective member, so nobody else will access that link?
Hi again!
Thank you so far for all the help! I have now created a user registration for with woocommerce membership payment. All is good, the registration och payment works. But the user is not registered.. Its the same form we have been working on: looks like this now :
add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($post_id, $form_data)
{
// if a specific form
if ($form_data['id']==829)
{
$user_info = get_userdata( $post_id );
if ( isset( $user_info->user_login ) ) {
$main_site = 'weareyou.online'; // Add your main domain here
$new_blog = wpmu_create_blog( $main_site, '/'.$user_info->user_login.'/', $user_info->user_login.''.$user_id, $user_id , array( 'public' => 1 ) );
add_user_to_blog( $new_blog, $post_id, 'author');
wp_delete_user( $post_id);
}
}
}
Its not the same form ID but otherwise the same. Do you know why the user is not registered?