Skip to content

Instantly share code, notes, and snippets.

@vanbo
Created July 29, 2020 13:20
Show Gist options
  • Select an option

  • Save vanbo/11e352670f5c3fe2c399562663f59336 to your computer and use it in GitHub Desktop.

Select an option

Save vanbo/11e352670f5c3fe2c399562663f59336 to your computer and use it in GitHub Desktop.
WC Borica Filter Payment Request
/**
* 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