title: How to send email password when creating a new user by API in Wordpress?
body: <p>It is possible to create a new user by API with the following line:</p>
  
  <pre><code>$user_id = wp_insert_user( $user_data );
  </code></pre>
  
  <p>I wonder how to send the newly created user an email that contains his password? Is there any function in Wordpress API that handles this job or should I create and send an email by myself?</p>