mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 14:57:26 +08:00
Simplify the new UI check for the onboarding.js file
This commit is contained in:
parent
3042e3d6b8
commit
5a0adf8ac8
1 changed files with 1 additions and 7 deletions
|
@ -48,13 +48,7 @@ class OnboardingModule implements ServiceModule, ExtendingModule, ExecutableModu
|
||||||
add_action(
|
add_action(
|
||||||
'admin_enqueue_scripts',
|
'admin_enqueue_scripts',
|
||||||
function() use ( $c ) {
|
function() use ( $c ) {
|
||||||
if (
|
if ( ! SettingsModule::should_use_the_old_ui() ) {
|
||||||
apply_filters(
|
|
||||||
// phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
|
|
||||||
'woocommerce.feature-flags.woocommerce_paypal_payments.settings_enabled',
|
|
||||||
getenv( 'PCP_SETTINGS_ENABLED' ) === '1'
|
|
||||||
) && ! SettingsModule::should_use_the_old_ui()
|
|
||||||
) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue