I am trying to create a user on a different wordpress site through the submission of a form using POST.
The way it functions is that the user clicks a button that has a hidden form supplying information through method POST to a CRM that will than also send a method POST to a php file on the site of the wordpress that the user should be created. The code is as follows:
For some reason it creates the user on the original wordpress site of where they clicked the button rather than the other wordpress site. I am extremely confused and I think it has to do wit the $wpdb being called to the wrong database.