Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created August 10, 2019 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/20017f4c74e75a87a2d412d5d10898eb to your computer and use it in GitHub Desktop.
Save dancameron/20017f4c74e75a87a2d412d5d10898eb to your computer and use it in GitHub Desktop.
User Password Shortcode for Ninja Forms
<?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