woocommerce_prevent_automatic_wizard_redirect

woocommerce_prevent_automatic_wizard_redirect

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_prevent_automatic_wizard_redirect') is found 1 times:

  • /src/Internal/Admin/Onboarding/OnboardingSetupWizard.php line 97
     
    			// On these pages, or during these events, disable the redirect.
    			if (
    				( 'wc-admin' === $current_page && $is_onboarding_path ) ||
    				apply_filters( 'woocommerce_prevent_automatic_wizard_redirect', false ) ||
    				isset( $_GET['activate-multi'] ) // phpcs:ignore WordPress.Security.NonceVerification
    			) {
    				delete_transient( '_wc_activation_redirect' );
    				$do_redirect = false;
    			}