add sdk components filter

This commit is contained in:
carmenmaymo 2023-08-24 10:58:42 +02:00
parent 8cb9c026e2
commit 2563d41d83
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -1168,6 +1168,16 @@ class SmartButton implements SmartButtonInterface {
if ( $this->dcc_is_enabled() ) {
$components[] = 'hosted-fields';
}
/**
* Filter to add further components from the extensions.
*
* @internal Matches filter name in APM extension.
* @since TODO
*
* @param array $components The array of components already registered.
*/
return apply_filters( 'woocommerce_paypal_payments_sdk_components_hook', $components );
return $components;
}