title: Wordpress | Woocommerce custom registration form
body: <p>I would like to ask whether it is possible to create the registration with the only code that is sent to the user's mail after form submitted, I'm not sure how to do properly.</p>
  
  <blockquote>
    <p>for example : The user enters his email and the system will
    automatically send the generated password example: " 12345 " And this
    password i want use for all users</p>
  </blockquote>
  
  <pre><code>&lt;?php
  function wcs_filter_password_email( $args ) {
      $args['user_pass'] = $args['user_email'];
      return $args;
  }
  add_filter( 'woocommerce_new_customer_data', 'wcs_filter_password_email' );
  </code></pre>
  
  <p>I found this code but do not know if it would work as I want it
  <strong>Thank you very much for your help.</strong></p>