Skip to content

Instantly share code, notes, and snippets.

@New0
Created September 7, 2017 16:32
Show Gist options
  • Save New0/b9a7fa9aef591fd04bd41dd57b5b6083 to your computer and use it in GitHub Desktop.
Save New0/b9a7fa9aef591fd04bd41dd57b5b6083 to your computer and use it in GitHub Desktop.
direct_stripe_success_user_email_content filter hook example
add_filter( 'direct_stripe_success_user_email_content', function( $message, $token, $amount, $currency, $email_address, $description, $user_id, $button_id){
$message = 'User ' . $email_address . ' have been charged ' . $amount . $currency . ' for ' . $description;
return $message;
}, 10, 8 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment