Skip to content

Commit 6a0aa8c

Browse files
committed
migrate llms_stripe_statement_descriptor.php
1 parent 17e6727 commit 6a0aa8c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php // don't copy this line to your functions.php file!
2+
3+
/**
4+
* Allows customization of the statement descriptor before passing a charge to Stripe
5+
* @param string $descriptor Default descriptor
6+
* @param string $order instance of the LLMS_Order for the related charge
7+
* @return string
8+
*/
9+
function my_llms_stripe_statement_descriptor( $descriptor, $order ) {
10+
return __( 'My Custom Statement Descriptor', 'my-text-domain' );
11+
}
12+
add_filter( 'llms_stripe_statement_descriptor', 'my_llms_stripe_statement_descriptor', 10, 2 );

0 commit comments

Comments
 (0)