__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.
Список изменений
С версии 4.4.0 | Введена. |
Где вызывается хук
__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() );