Home Forums WC Vendors Pro Support redirect

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #65152
    patrick
    Participant

    can i have pending vendors redirect to pro dashboard after submitting the vendor application?

    And also have vendors redirect to the pro dashboard on login in at the same time?

    I have this code, can i add, and how would i add, i believe is_pending to this code?

    add_filter('woocommerce_login_redirect', 'login_redirect', 10, 2);
    function login_redirect( $redirect_to, $user ) {
        if (class_exists('WCV_Vendors') && class_exists('WCVendors_Pro') && WCV_Vendors::is_vendor( $user->id ) ) {
            $redirect_to = get_permalink(WCVendors_Pro::get_option( 'dashboard_page_id' ));
        }
        return $redirect_to;
    }
    #65698
    Anna
    Member

    @patco
    I believe that will work for the redirect.
    Have you tried it?
    If it does not work properly let me know and I will see if I can find out how you would need to define the pending vendor. I think that is correct, though.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.