Created
July 6, 2022 21:07
-
-
Save maxrice/5e12abd249fc8003932f595d2582257f to your computer and use it in GitHub Desktop.
Revisions
-
maxrice created this gist
Jul 6, 2022 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ <?php // remove Store name from merchant_ref field for First Data Payeezy add_filter( 'wc_payment_gateway_first_data_payeezy_credit_card_get_order_base', function( $order ) { $order->description = sprintf( 'Order #%1$s', $order->get_order_number() ); return $order; }, 1 );