woocommerce/plugins/woocommerce-blocks/docs/examples/payment-gateways-features-l...

21 lines
757 B
Markdown
Raw Normal View History

```php
// The action callback function.
function my_function_callback( $features, $gateway ) {
if ( 'my-gateway' !== $gateway->id ) {
return $features;
}
$features[] = 'some-feature';
return $features;
}
add_filter( '__experimental_woocommerce_blocks_payment_gateway_features_list', 'my_function_callback', 10, 2 );
```
<!-- FEEDBACK -->
---
[We're hiring!](https://woocommerce.com/careers/) Come work with us!
🐞 Found a mistake, or have a suggestion? [Leave feedback about this document here.](https://github.com/woocommerce/woocommerce-gutenberg-products-block/issues/new?assignees=&labels=type%3A+documentation&template=--doc-feedback.md&title=Feedback%20on%20./docs/examples/payment-gateways-features-list.md)
<!-- /FEEDBACK -->