__experimental_woocommerce_blocks_payment_gateway_features_list
Filter to control what features are available for each payment gateway.
Использование
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(массив)
- List of supported features.
- $name(строка)
- Gateway name.
Где вызывается хук
__experimental_woocommerce_blocks_payment_gateway_features_list
woocommerce/packages/woocommerce-blocks/src/Payments/Integrations/PayPal.php 96
return apply_filters( '__experimental_woocommerce_blocks_payment_gateway_features_list', $features, $this->get_name() );