wp_create_user hook

I’m using UserUltra Pro plugin and I need to create a custom post type after user register in the site. UserUltra plugin uses wp_create_user() which I know is a wrapper for wp_insert_user(). Moreover, I know that ‘user_register’ is the hook called after wp_insert_user(). Beside this, I can’t create new custom post type because it seems … Read more

wp_insert_user – how to send verification email before logging in

Using below code, I am able to create an user. But when I am login, the user is directly logging in to dashboard and there is no email sent to verify the email address. Is there any way to send verification email once the wp_insert_user function is called and the user has to confirm his … Read more

Send automatic email to user after wp_create_user

So, here is some code I came up with — It works, but now I need it to send the username and password it generated to that email address automatically ?? Also the first and last name isn’t recording ?? Thanks!! require(‘wordpress/wp-blog-header.php’); $user_email = trim(isset($_POST[‘payer_email’]) ? $_POST[‘payer_email’] : “”); $user_name = trim(isset($_POST[‘first_name’]) ? $_POST[‘first_name’] : … Read more

What’s the difference between wp_insert_user() and wp_create_user()

I know the former allows additional parameters, so you can more user info, but other then that, why do both exist? The specific reason I want to know is that wp_insert_user() is happening REALLY slowly. Somewhere between 5 – 10 seconds. I don’t remember having this problem in the past, when I was using create_user, … Read more