Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Call the Gateway by it's name; primarily used for testing purposes
* Call Give Payment Gateways by Name
* @param $gateways
* @return mixed
function gr_override_gateway_labels( $gateways ) {
$gateways['authorize']['checkout_label'] = 'Authorize';
$gateways['stripe']['checkout_label'] = 'Stripe';
$gateways['paypalpro']['checkout_label'] = 'PayPal Pro';
$gateways['wepay']['checkout_label'] = 'WePay';
return $gateways;
add_filter( 'give_payment_gateways', 'gr_override_gateway_labels' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment