Skip to content

Instantly share code, notes, and snippets.

@amdrew
Created February 16, 2016 22:18
Show Gist options
  • Save amdrew/42c943c51e28a1f07a7f to your computer and use it in GitHub Desktop.
Save amdrew/42c943c51e28a1f07a7f to your computer and use it in GitHub Desktop.
EDD Auto Register - change the length of the auto-generated password
<?php
function sumobi_edd_auto_register_filter_password_length( $args ) {
// change from the default of 32 to 10
$args['user_pass'] = wp_generate_password( 10 );
return $args;
}
add_filter( 'edd_auto_register_insert_user_args', 'sumobi_edd_auto_register_filter_password_length' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment