Created
February 16, 2016 22:18
-
-
Save amdrew/42c943c51e28a1f07a7f to your computer and use it in GitHub Desktop.
EDD Auto Register - change the length of the auto-generated password
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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