In WordPress, i want to create New Users from external. I’ve found this is function in wordpress:
wp_create_user( $username, $password, $email );
So how can i run this function from external call please?
I mean, how to run this function from either:
- Via simple URL with GET, like:
www.example.com/adduser/?username=james&password=simpletext&email=myemail
- Via cURL with POST
.. from external website.
You may try this but also make sure that the listening url has a handler to handle the request in your
WordPress
end (usingGET
methof)Call the function from external site :
Update : using
POST
methodCall the function with
data