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:
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.
-
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
워드프레스 결제 심플페이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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
سرویس خرید پستی ماها10+ installs
apply_filters( 'woocommerce_no_available_payment_methods_message', $no_gateways_message )checkout/payment.php:26 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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 -
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.