Created
September 16, 2020 11:16
-
-
Save allycspf/7b5f562a2f706e44a63177c6803f14a3 to your computer and use it in GitHub Desktop.
MemberPress Override Stripe Statement Descriptor
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
add_filter('mepr_stripe_statement_descriptor', function($descriptor, $product) { | |
return 'Custom Descriptor'; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@msmithng The code itself sets the statement descriptor, it doesn't add a section for it. To set it up you can install the plugin Code Snippets plugin then add a new snippet then copy and paste the 3 lines of code above into the Code field of the snippet, then change the text
Custom Descriptor
to the statement descriptor you want, for exampleMy Company
. Set the snippet to "Run everywhere" and save it.If you are having any issues with this, feel free to open a ticket https://memberpress.com/support/