mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Merge pull request #2810 from woocommerce/PCP-3943-disable-the-old-onboarding-assets-when-the-new-settings-ui-is-enabled
Disable the old onboarding assets when the new settings UI is enabled (3943)
This commit is contained in:
commit
4bb09bb5b1
1 changed files with 27 additions and 20 deletions
|
@ -44,6 +44,12 @@ class OnboardingModule implements ServiceModule, ExtendingModule, ExecutableModu
|
||||||
*/
|
*/
|
||||||
public function run( ContainerInterface $c ): bool {
|
public function run( ContainerInterface $c ): bool {
|
||||||
|
|
||||||
|
if ( ! apply_filters(
|
||||||
|
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
||||||
|
'woocommerce.feature-flags.woocommerce_paypal_payments.settings_enabled',
|
||||||
|
getenv( 'PCP_SETTINGS_ENABLED' ) === '1'
|
||||||
|
) ) {
|
||||||
|
|
||||||
$asset_loader = $c->get( 'onboarding.assets' );
|
$asset_loader = $c->get( 'onboarding.assets' );
|
||||||
/**
|
/**
|
||||||
* The OnboardingAssets.
|
* The OnboardingAssets.
|
||||||
|
@ -64,6 +70,7 @@ class OnboardingModule implements ServiceModule, ExtendingModule, ExecutableModu
|
||||||
'enqueue',
|
'enqueue',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
add_filter(
|
add_filter(
|
||||||
'woocommerce_form_field',
|
'woocommerce_form_field',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue