Created
September 17, 2017 09:15
-
-
Save New0/be88622df3db5215ed6215f62765dbc0 to your computer and use it in GitHub Desktop.
Send login credentials to user after sucessful Direct Stripe notification
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
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