Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php // don't include this line in your functions.php, since it already starts with it.
  2.  
  3.  
  4. function _send_user_password( $args = array() ) {
  5. $args['user_pass'] = wp_generate_password();
  6. return $args;
  7. }
  8. add_filter( 'si_create_user_args', '_send_user_password' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement