I have been working with Elgg. An open source social networking software created in php. I have been working with the API and so far have been able to register users using the register_user function:
register_user($username, $password, $email);
The problem however is that I don't need users to confirm via emails when registered through the API. I need to know which function I could use to 'auto confirm' the user.