Skip to content

Instantly share code, notes, and snippets.

@allycspf
Created September 16, 2020 11:16
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 allycspf/7b5f562a2f706e44a63177c6803f14a3 to your computer and use it in GitHub Desktop.
Save allycspf/7b5f562a2f706e44a63177c6803f14a3 to your computer and use it in GitHub Desktop.
MemberPress Override Stripe Statement Descriptor
add_filter('mepr_stripe_statement_descriptor', function($descriptor, $product) {
return 'Custom Descriptor';
}, 10, 2);
@allycspf
Copy link
Author

@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 example My 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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment