Home Forums WC Vendors Free Support [Resolved] Logout 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 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #193
    2001web
    Participant

    Hi Guys,

    Found the code in old forum for login redirect. Any chance of the same for logout?

    #197
    WC Vendors Support
    Participant

    Sure!


    add_action('wp_logout','go_home');
    function go_home(){
    wp_redirect( home_url() );
    exit();
    }

    #198
    2001web
    Participant

    Or to a specific page?

    #199
    WC Vendors Support
    Participant

    Then change home_url() with the URL you’d like them to go to

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘WC Vendors Free Support’ is closed to new topics and replies.