Created
August 10, 2019 00:47
-
-
Save dancameron/20017f4c74e75a87a2d412d5d10898eb to your computer and use it in GitHub Desktop.
User Password Shortcode for Ninja Forms
This file contains 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 // don't include this line in your functions.php, since it already starts with it. | |
function _send_user_password( $args = array() ) { | |
$args['user_pass'] = wp_generate_password(); | |
return $args; | |
} | |
add_filter( 'si_create_user_args', '_send_user_password' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment