Home Forums ePix Support Redirect to a custom page after logging out

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #56497

    Simone pasqualini
    Participant

    Hello,

    i’m looking to have the feature that woocommerce explained here -> https://support.woothemes.com/hc/en-us/articles/202819256-Redirect-to-a-custom-page-after-logging-out for your theme.

    To have a logout redirect to WP-admin is very unsightly for customers.

    I look forward to your reply.

    Regards,
    S.

    #56498

    Simone pasqualini
    Participant

    please let me know if this code could be good for your theme:

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

    the code must be insert in fucntions.php

    Thanks
    Simone

    #56506

    Tom ( Support)
    Keymaster

    Hi Simone,

    I don’t see why this wouldn’t work, I recommend testing it by editing the functions.php file within your FTP, as you can quickly change it back if it doesn’t work.

    Hope this helps.
    Tom

    #56508

    Simone pasqualini
    Participant

    just tried and it’s working.
    Ticket solved

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

© 2019 Acoda