Skip to content

Instantly share code, notes, and snippets.

@New0
Created September 17, 2017 09:15
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 New0/be88622df3db5215ed6215f62765dbc0 to your computer and use it in GitHub Desktop.
Save New0/be88622df3db5215ed6215f62765dbc0 to your computer and use it in GitHub Desktop.
Send login credentials to user after sucessful Direct Stripe notification
add_action( 'direct_stripe_before_success_redirection', function( $chargeID, $post_id, $button_id, $user_id ) {
wp_new_user_notification( $user_id, null, 'both' );
}, 10, 4 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment