Created
July 29, 2020 13:20
-
-
Save vanbo/11e352670f5c3fe2c399562663f59336 to your computer and use it in GitHub Desktop.
WC Borica Filter Payment Request
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 characters
| /** | |
| * NOTE: Add the code to your "child-theme/functions.php" file | |
| */ | |
| add_filter( 'wc_borica_form_request_parameters', 'vanbodevelops_filter_borica_request', 10, 3 ); | |
| function vanbodevelops_filter_borica_request( $params, $order, $gateway ) { | |
| // NOTE: Use each block as needed. | |
| // 1. Change the Borica payment page language | |
| // 'BG' - bulgarian, 'EN' - english | |
| $params['language'] = 'EN'; | |
| return $params; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment