Skip to content

Commit

Permalink
migrate llms_stripe_statement_descriptor.php
Browse files Browse the repository at this point in the history
  • Loading branch information
actuallyakash committed Nov 14, 2023
1 parent 17e6727 commit 6a0aa8c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lifterlms-gateway-stripe/llms_stripe_statement_descriptor.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php // don't copy this line to your functions.php file!

/**
* Allows customization of the statement descriptor before passing a charge to Stripe
* @param string $descriptor Default descriptor
* @param string $order instance of the LLMS_Order for the related charge
* @return string
*/
function my_llms_stripe_statement_descriptor( $descriptor, $order ) {
return __( 'My Custom Statement Descriptor', 'my-text-domain' );
}
add_filter( 'llms_stripe_statement_descriptor', 'my_llms_stripe_statement_descriptor', 10, 2 );

0 comments on commit 6a0aa8c

Please sign in to comment.