WordPress filter hook
__experimental_woocommerce_blocks_payment_gateway_features_list
Fired by 8 WordPress plugins, running on 7M+ sites between them.
“Filter to control what features are available for each payment gateway.”
How to use __experimental_woocommerce_blocks_payment_gateway_features_list
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:
add_filter( '__experimental_woocommerce_blocks_payment_gateway_features_list', function( $features, $arg2 ) {
// Change $features here.
return $features;
}, 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.
8 plugins that fire __experimental_woocommerce_blocks_payment_gateway_features_list
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
WooCommerce7+ million installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() )src/Blocks/Payments/Integrations/PayPal.php:131 -
Ecommerce Fabrick1,000+ installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() )inc/class-gestpay-bancomatpay-blocks-integration.php:165 -
Wallet Up200+ installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() )src/WooCommerce/Blocks/WalletUpProBlocksSupport_OFFICIAL.php:299 -
Fabrick Payment Orchestra80+ installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $name )src/Blocks/FabrickOrchestraPaymentMethodType.php:279 -
PayTomorrow60+ installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() )classes/class-wc-gateway-paytomorrow-blocks-support.php:101 -
SaleMint40+ installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->name )includes/Gateway/Paddle_Blocks_Integration.php:117 -
Nochex Payment Gateway for Woocommerce20+ installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() )includes/class-block.php:59 -
Redlight Manual Payments for SwishFewer than 10 installs
apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() )includes/blocks/class-wc-gateway-swish-blocks.php:91
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.