WordPress filter hook

woocommerce_gateway_title

Defined by WooCommerce and fired by 33 plugins in total, running on 7.1M+ sites between them.

“Filter the gateway title.”

How to use woocommerce_gateway_title

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'woocommerce_gateway_title', function( $title, $id ) {
	// Change $title here.
	return $title;
}, 10, 2 );

Argument names come from WooCommerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

33 plugins that fire woocommerce_gateway_title

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WooCommerce icon WooCommerce7+ million installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/abstracts/abstract-wc-payment-gateway.php:384
  2. Klarna for WooCommerce icon Klarna for WooCommerce20,000+ installs apply_filters( 'woocommerce_gateway_title', $order->get_payment_method_title(), $this->id ) classes/class-wc-gateway-klarna-payments.php:200
  3. Yoco Payments icon Yoco Payments10,000+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) src/Gateway/Gateway.php:264
  4. Paymob for WooCommerce icon Paymob for WooCommerce5,000+ installs apply_filters( 'woocommerce_gateway_title', $this->title, $this->id ) includes/gateways/class-paymob-payment.php:196
  5. Payoneer Checkout icon Payoneer Checkout5,000+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/Gateways/WC_Payoneer_Gateway.php:183
  6. PagBank for WooCommerce icon PagBank for WooCommerce4,000+ installs apply_filters( 'woocommerce_gateway_title', $this->title, $this->id ) src/core/Gateways/ApplePayPaymentGateway.php:146
  7. MyFatoorah icon MyFatoorah2,000+ installs apply_filters( 'woocommerce_gateway_title', $this->title, $this->id ) includes/payments/class-wc-gateway-myfatoorah-embedded.php:108
  8. PayPal Brasil para WooCommerce icon PayPal Brasil para WooCommerce1,000+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/payment-methods/class-paypal-brasil-applepay-gateway.php:138
  9. PostFinance Checkout for Woocommerce icon PostFinance Checkout for Woocommerce1,000+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-wc-postfinancecheckout-gateway.php:179
  10. payever Checkout icon payever Checkout800+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-payever-gateway.php:491
  11. ESTO payment methods icon ESTO payment methods700+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-esto-x-payment.php:256
  12. PayZen for WooCommerce icon PayZen for WooCommerce600+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) class-wc-gateway-payzenother.php:101
  13. wallee icon wallee400+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-wc-wallee-gateway.php:179
  14. AmwalPay for WooCommerce icon AmwalPay for WooCommerce200+ installs apply_filters( 'woocommerce_gateway_title', $this->title . $bank_epp, $this->id ) includes/gateway/class-amwalpay-gateway.php:145
  15. Cryptocurrency Payment Gateway for WooCommerce icon Cryptocurrency Payment Gateway for WooCommerce200+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/WooCommerce/TripleA_Payment_Gateway.php:348
  16. Swedbank Pay Payment Menu icon Swedbank Pay Payment Menu200+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-swedbank-pay-payment-gateway-checkout.php:587
  17. VR Payment icon VR Payment90+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-wc-vrpayment-gateway.php:179
  18. Sadad Payment for WooCommerce icon Sadad Payment for WooCommerce90+ installs apply_filters( 'woocommerce_gateway_title', $this->title, $this->id ) includes/payments/class-gateway-sadad.php:100
  19. Speed Bitcoin and Stablecoin Payments for WooCommerce icon Speed Bitcoin and Stablecoin Payments for WooCommerce60+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/WooCommerce/Speed_Payment_Gateway.php:169
  20. Fintoc for WooCommerce icon Fintoc for WooCommerce40+ installs apply_filters( 'woocommerce_gateway_title', $this->method_title, $this->id ) includes/class-wc-fintoc-gateway.php:294
  21. XPay for WooCommerce icon XPay for WooCommerce40+ installs apply_filters( 'woocommerce_gateway_title', XPayEG_Payment_Methods::label( XPayEG_Payment_Methods::CARD ), $this->id ) includes/gateway/class-xpayeg-gateway.php:498
  22. TradeSafe Payment Gateway for WooCommerce icon TradeSafe Payment Gateway for WooCommerce30+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) src/class-wc-gateway-tradesafe.php:101
  23. InPrimePay for WooCommerce icon InPrimePay for WooCommerce20+ installs apply_filters( 'woocommerce_gateway_title', $clean_title, $this->id ) includes/class-wc-gateway-inprimepay.php:230
  24. Amwal Checkout icon Amwal Checkout10+ installs apply_filters( 'woocommerce_gateway_title', $this->title, $this->id ) includes/class-wc-gateway-amwal-installments.php:105
  25. Raif payment icon Raif payment10+ installs apply_filters( 'woocommerce_gateway_title', $this->title_icon_html, $this->id ) includes/class-gateway.php:346
  26. WeArePlanet icon WeArePlanet10+ installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-wc-weareplanet-gateway.php:179
  27. ONE.lat for WooCommerce icon ONE.lat for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-wc-gateway-one-lat.php:251
  28. Whalet Payment icon Whalet PaymentFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $this->get_title_text(), $this->id ) woocommerce/card/class-wc-gateway-card.php:108
  29. EBE PAYGATE Checkout for WooCommerce icon EBE PAYGATE Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-ebe-paygate-gateway.php:265
  30. HSBC Open Payments icon HSBC Open PaymentsFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-hsbc-gateway.php:442
  31. Zinia icon ZiniaFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/class-wc-zinia-gateway.php:419
  32. Nevogate Payment Gateway for WooCommerce icon Nevogate Payment Gateway for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) classes/class-nevogatepgwoo-provider.php:342
  33. Match2Pay crypto payments for WooCommerce icon Match2Pay crypto payments for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_gateway_title', $title, $this->id ) includes/WooCommerce/Payment_Gateway.php:1484

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.