Author: Daniel

Daniel

 Member Since January 2022

Projects

How to Choose a Stunt S...

Most riders prefer to have the handlebars between their waist and belly button when standing on the scooter. Y...

  • 0%funded
  • 1 target
  • 10080 days to go
Create an Account to Start a Campaign

//$errors = register_new_user($_POST['user_login'], $_POST['user_email']);
$errors = wp_create_user( $_POST['user_login'], $_POST['user_password'], $_POST['user_email'] );
if (!is_wp_error($errors)) {
//Success
$return['result'] = true;
$return['redirect']=home_url().'/launch-project/';
$return['message'] = esc_html__('Registration complete.', 'funding');
} else {
//Something's wrong
$return['result'] = false;
$return['error'] = $errors -> get_error_message();
}
}
echo $this -> json_encode($return);
exit();
}
}

×