woocommerce_enable_setup_wizard

woocommerce_enable_setup_wizard

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_enable_setup_wizard') is found 1 times:

  • /src/Internal/Admin/Onboarding/OnboardingSetupWizard.php line 97
    093
    094
    095
    096
    097
    098
    099
    100
    101
    102
    103
    }
     
    // Setup wizard redirect.
    // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    if ( get_transient( '_wc_activation_redirect' ) && apply_filters( 'woocommerce_enable_setup_wizard', true ) ) {
        $do_redirect        = true;
        $current_page       = isset( $_GET['page'] ) ? wc_clean( wp_unslash( $_GET['page'] ) ) : false; // phpcs:ignore WordPress.Security.NonceVerification
        $is_onboarding_path = ! isset( $_GET['path'] ) || '/setup-wizard' === wc_clean( wp_unslash( $_GET['page'] ) ); // phpcs:ignore WordPress.Security.NonceVerification
     
        // On these pages, or during these events, postpone the redirect.
        // phpcs:ignore WordPress.WP.Capabilities.Unknown