__experimental_woocommerce_blocks_payment_gateway_features_list filter-hookWC 4.4.0

Filter to control what features are available for each payment gateway.

Usage

add_filter( '__experimental_woocommerce_blocks_payment_gateway_features_list', 'wp_kama__experimental_woocommerce_blocks_payment_gateway_features_list_filter', 10, 2 );

/**
 * Function for `__experimental_woocommerce_blocks_payment_gateway_features_list` filter-hook.
 * 
 * @param array  $features List of supported features.
 * @param string $name     Gateway name.
 *
 * @return array
 */
function wp_kama__experimental_woocommerce_blocks_payment_gateway_features_list_filter( $features, $name ){

	// filter...
	return $features;
}
$features(array)
List of supported features.
$name(string)
Gateway name.

Changelog

Since 4.4.0 Introduced.

Where the hook is called

PayPal::get_supported_features()
__experimental_woocommerce_blocks_payment_gateway_features_list
woocommerce/src/Blocks/Payments/Integrations/PayPal.php 98
return apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() );

Where the hook is used in WooCommerce

Usage not found.