diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index 763038e8e..f8e3bff10 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -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; }