WordPress filter hook

woocommerce_no_available_payment_methods_message

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

“This filter is documented in woocommerce/templates/checkout/form-pay.php.”

How to use woocommerce_no_available_payment_methods_message

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

functions.php
add_filter( 'woocommerce_no_available_payment_methods_message', function( $no_gateways_message ) {
	// Change $no_gateways_message here.
	return $no_gateways_message;
}, 10, 1 );

Argument names come from سرویس خرید پستی ماها's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

43 plugins that fire woocommerce_no_available_payment_methods_message

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_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) templates/checkout/form-pay.php:89
  2. CartFlows icon CartFlows200,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) woocommerce/template/checkout/form-pay.php:90
  3. ShopLentor icon ShopLentor80,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woolentor' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woolentor' ) ) includes/modules/shopify-like-checkout/includes/templates/payment.php:21
  4. WooCommerce Square icon WooCommerce Square80,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce-square' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce-square' ) ) includes/Gateway/Templates/payment.php:41
  5. FunnelKit icon FunnelKit30,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) modules/checkouts/public/template-common/checkout/payment-2.5.0.php:41
  6. Fluid Checkout for WooCommerce icon Fluid Checkout for WooCommerce20,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) templates/fc/checkout-steps/checkout/payment.php:50
  7. SellKit icon SellKit7,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'sellkit' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'sellkit' ) ) includes/block-editor/blocks/checkout/inner-blocks/payment/class.php:68
  8. Donation Platform for WooCommerce: Fundraising & Donation Management icon Donation Platform for WooCommerce: Fundraising & Donation Management6,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems no payment gateways support changing the recurring payment method. Please contact us if you require assistance or to make alternate arrangements.', 'woocommerce-subscriptions' ) ) includes/integrations/woocommerce-subscriptions/templates/checkout/form-change-payment-method.php:76
  9. WPFunnels icon WPFunnels5,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) woocommerce/templates/checkout/payment.php:58
  10. WowStore icon WowStore4,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'product-blocks' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'product-blocks' ) ) blocks/woo/checkout/payment_method/Template.php:23
  11. Payment Plugins Braintree For WooCommerce icon Payment Plugins Braintree For WooCommerce2,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) templates/checkout/subscription-form-pay.php:89
  12. Deposits & Partial Payments for WooCommerce icon Deposits & Partial Payments for WooCommerce1,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) templates/checkout/form-pay.php:83
  13. 워드프레스 결제 심플페이 icon 워드프레스 결제 심플페이1,000+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems no payment gateways support changing the recurring payment method. Please contact us if you require assistance or to make alternate arrangements.', 'woocommerce-subscriptions' ) ) templates/checkout/form-change-payment-method-pafw.php:81
  14. ShopPress icon ShopPress600+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'shop-press' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'shop-press' ) ) public/templates/checkout/multi-step-checkout-form.php:167
  15. StoreBuild icon StoreBuild400+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__('Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'shopbuild') : esc_html__('Please fill in your details above to see available payment methods.', 'shopbuild') ) public/woocommerce/checkout/payment.php:34
  16. Elavon Payment Gateway for WooCommerce icon Elavon Payment Gateway for WooCommerce300+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __('No available payment methods for your location. Please contact us if you require assistance.', 'elavon-payment-gateway-for-woocommerce') ) templates/myaccount/epg-change-payment-method.php:67
  17. Hide Address Fields for WooCommerce icon Hide Address Fields for WooCommerce300+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) hide-address-fields-for-woocommerce.php:1097
  18. KiriminAja Official icon KiriminAja Official200+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'kiriminaja-official' ) ) templates/woocommerce/checkout/form-pay.php:94
  19. Amazon payment services icon Amazon payment services100+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) public/woo_templates/checkout/payment.php:45
  20. Shopready icon Shopready100+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'shopready-elementor-addon' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'shopready-elementor-addon' ) ) src/extension/elewidgets/widgets/checkout/template-part/payment.php:17
  21. Horeka Core icon Horeka Core50+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) inc/Woocommerce/Mobilpay.php:59
  22. Checkout Custom Fields Builder for WooCommerce icon Checkout Custom Fields Builder for WooCommerce30+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'checkout-custom-fields-builder-for-woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'checkout-custom-fields-builder-for-woocommerce' ) ) templates/frontend/checkout/payment-actions.php:37
  23. One Page Checkout for WooCommerce icon One Page Checkout for WooCommerce30+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'onepagecheckout-for-woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'onepagecheckout-for-woocommerce' ) ) public/templates/checkout/payment.php:33
  24. MerchantX Gateway for WooCommerce icon MerchantX Gateway for WooCommerce10+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) class/order-pay.php:36
  25. سرویس خرید پستی ماها icon سرویس خرید پستی ماها10+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', $no_gateways_message ) checkout/payment.php:26
  26. Subscriptions & Recurring Payments for WooCommerce icon Subscriptions & Recurring Payments for WooCommerce10+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems no payment gateways support changing the recurring payment method. Please contact us if you require assistance or to make alternate arrangements.', 'subscriptions-recurring-payments-for-woocommerce' ) ) temp/checkout/form-change-payment-method.php:79
  27. SkyHS icon SkyHS10+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems no payment gateways support changing the recurring payment method. Please contact us if you require assistance or to make alternate arrangements.', 'skyhs-hosting-solution' ) ) templates/checkout/form-change-payment-method.php:83
  28. Custom & One-Page Checkout for Woo icon Custom & One-Page Checkout for Woo10+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) templates/woocommerce/checkout/payment.php:35
  29. WPC icon WPC10+ installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) app/inc/Addons/wpc-onepage-checkout/templates/checkout/payment.php:18
  30. Vanquish Deposits icon Vanquish DepositsFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, there are no payment methods available. Please contact us.', 'vanquish-deposits-for-woocommerce' ) ) templates/checkout/form-pay-payment.php:108
  31. Checkout Popup icon Checkout PopupFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_country() ? __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) woocommerce/checkout/payment.php:38
  32. Cresta Checkout for WooCommerce icon Cresta Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, there are no payment methods available for your address. Please contact us for help.', 'cresta-checkout-for-woocommerce' ) : esc_html__( 'Please fill in your details above to see the available payment methods.', 'cresta-checkout-for-woocommerce' ) ) templates/wc/checkout/payment.php:29
  33. Checkoutify Lite icon Checkoutify LiteFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__('No payment methods available for your location.', 'checkoutify-lite') : esc_html__('Complete your address to see payment methods.', 'checkoutify-lite') ) templates/minimalista/template.php:80
  34. MCOD Minimalist Checkout for WooCommerce icon MCOD Minimalist Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems there are no available payment methods for your location. Please contact us if you need help.', 'mcod-minimalist-checkout-for-woocommerce' ) : esc_html__( 'Please fill in your delivery details to view available payment methods.', 'mcod-minimalist-checkout-for-woocommerce' ) ) templates/woocommerce/checkout/payment.php:28
  35. Bright Deposits for WooCommerce icon Bright Deposits for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'bright-deposits-for-woocommerce' ) ) templates/checkout/form-pay.php:84
  36. SuperPlus icon SuperPlusFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__('Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'superplus-for-woocommerce') : esc_html__('Please fill in your details above to see available payment methods.', 'superplus-for-woocommerce') ) includes/modules/checkout-steps/templates/woocommerce/checkout/payment.php:42
  37. YayCheckout icon YayCheckoutFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'yaycheckout' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'yaycheckout' ) ) includes/Renderer/CheckoutFragments.php:774
  38. SKYRO Checkout for WooCommerce icon SKYRO Checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'skyro-checkout-for-woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'skyro-checkout-for-woocommerce' ) ) src/FrontEnd/TemplateFiles/TemplateParts/payment.php:47
  39. ithan devvn checkout for woocommerce icon ithan devvn checkout for woocommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', esc_html__( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'ithan-devvn-checkout-for-woocommerce' ) ) templates/checkout/form-pay.php:127
  40. Edit Shipping Address for WooCommerce icon Edit Shipping Address for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods. Please contact us if you require assistance or wish to make alternate arrangements.', 'edit-shipping-address-for-woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'edit-shipping-address-for-woocommerce' ) ) includes/edit-shipping-address-template.php:274
  41. Ajax instant buy checkout for WooCommerce icon Ajax instant buy checkout for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) template/payment.php:17
  42. WS Custom Checkout icon WS Custom CheckoutFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) checkout/templates/for_replacement/payment.php:33
  43. Brankas Payment for WooCommerce icon Brankas Payment for WooCommerceFewer than 10 installs apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_billing_country() ? esc_html__( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : esc_html__( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) woocommerce/checkout/payment.php:47

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.