Title: dbvisel's Replies | WordPress.org

---

# dbvisel

  [  ](https://wordpress.org/support/users/dbvisel/)

 *   [Profile](https://wordpress.org/support/users/dbvisel/)
 *   [Topics Started](https://wordpress.org/support/users/dbvisel/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dbvisel/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dbvisel/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dbvisel/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dbvisel/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dbvisel/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EDD Auto Register] changing password length](https://wordpress.org/support/topic/changing-password-length/)
 *  Thread Starter [dbvisel](https://wordpress.org/support/users/dbvisel/)
 * (@dbvisel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/changing-password-length/#post-6621542)
 * That works! Thanks so much for your prompt reply!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EDD Auto Register] changing password length](https://wordpress.org/support/topic/changing-password-length/)
 *  Thread Starter [dbvisel](https://wordpress.org/support/users/dbvisel/)
 * (@dbvisel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/changing-password-length/#post-6621535)
 * Hi! Here’s what I added to my private plugin:
 *     ```
       function edd_auto_register_insert_user_args($user_args) {
       	$myargs = array('user_pass' => wp_generate_password( 10 )	);
       	$user_args = array_replace($user_args, $myargs);
       	return $user_args;
       }
       add_filter( 'maybe_insert_user', 'edd_auto_register_insert_user_args');
       ```
   
 * That’s not working. Can I ask what I’m doing wrong?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[EDD Auto Register] changing password length](https://wordpress.org/support/topic/changing-password-length/)
 *  Thread Starter [dbvisel](https://wordpress.org/support/users/dbvisel/)
 * (@dbvisel)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/changing-password-length/#post-6621525)
 * Thanks! That looks like it will work for me.

Viewing 3 replies - 1 through 3 (of 3 total)