• Resolved Shawn Hayes

    (@sharewebdesign)


    I am looking for a way to stop WooCommerce from redirecting the user to the welcome screen upon the plugin activation.

    Are there any built-in functions or hooks I can use to accomplish this?

    I am not sure if this is the right place to ask this question, so I apologize ahead of time if this is the wrong venue.

    Thank you so much for your help!

Viewing 1 replies (of 1 total)
  • Thread Starter Shawn Hayes

    (@sharewebdesign)

    Okay, I figured it out. Thank you for the awesome plugin!

    //Stop WooCommerce redirect on activation
    function woocommerce_no_redirect_on_activation() {
        delete_transient( '_wc_activation_redirect' );
    };
    add_action( 'init', 'woocommerce_no_redirect_on_activation');
Viewing 1 replies (of 1 total)
  • The topic ‘WooCommerce – Stop redirect to welcome screen upon plugin activation’ is closed to new replies.