Where do I set the logout URL?

Home Forums Calendar Products Community Events Where do I set the logout URL?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #990910
    activeyouth
    Participant

    I found the redirect URL for when the user is trying to access areas of the site where they’re not allowed, but can I set it to go to a different URL when they logout? Right now it’s just using the redirect page.

    Thank you,
    Dawn

    #991065
    Brian
    Member

    Hi Dawn,

    I think WordPress has something that might help with this.

    I did a Google Search and found this coding that can be added to your theme’s functions.php:

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

    That code will redirect to your home page.

    You can change this to any url you would like: home_url()

    Cheers

    #991086
    activeyouth
    Participant

    Thank you! Much appreciated!

    I thought I was missing something because when I looked through the documentation there was even a function called tribe_community_events_logout_url, so I thought it was a setting somewhere.

    Thank you for pointing me back in the right direction!

    Dawn

    #991186
    Brian
    Member

    Great glad it helps.

    I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Where do I set the logout URL?’ is closed to new replies.