• Hello,

    SOrry I responded to a resolved thread, here’s a new request instead – I don’t knwo if you look at resolved ones.

    I’d like to redirect people at logout to my home page.
    I’ve looked at the snippet you provided, and pasted it at the bottom of the functions.php file in my theme’s folder, but it doesn’t seem to work.

    I’m not sure which parts I am supposed to change for my own urls?
    and am I putting it in the right place?

    Your code:

    function cuar_get_custom_logout_redirect_url( $current_url = null, $redirect_slug = 'customer-dashboard', $redirect_url = null ) {
        return 'http://www.google.com';
    }
    add_filter( 'cuar/routing/logout-url', 'cuar_get_custom_logout_redirect_url', 10, 3 );

    My code:

    function cuar_get_custom_logout_redirect_url( $current_url = null, $redirect_slug = 'customer-dashboard', $redirect_url = null ) {
        return 'http://mediride.stcom.co.uk';
    }
    add_filter( 'cuar/routing/logout-url', 'cuar_get_custom_logout_redirect_url', 10, 3 );

    https://ww.wp.xz.cn/plugins/customer-area/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Vincent Mimoun-Prat

    (@vprat)

    This looks fine, and the functions.php file is where that should be put. Maybe you are having another problem, you’ll have to debug to see where that is not working.

Viewing 1 replies (of 1 total)

The topic ‘Log out Redirect’ is closed to new replies.