I created a new user (called external) in a WordPress site with manage users capabilites. I installed Application Passwords plugin to generate a token for that user.
Now is it possibile to create a simple HTML form on a NON WordPress website to send POST request to /wp/v2/users
with external user credentials to create new users? Alternatively is it possibile to use "vanilla" PHP only or do I have to use JavaScript/jQuery with Ajax?
EDIT: reading around I understood I have to use cURL to do a POST request with PHP (in WordPress I' have used wp_remote_post(...)
) but I never used cURL, how can "convert" a wp_remote_post
call to a cURL POST request? How can I manage authentication?