• When I am in the control panel of the seller’s account, when I click on the exit button, it does not transfer to the page where login and registration for users are possible, but transfers to the entrance to the admin panel page.
    According to the documentation, after exiting, Dokan redirects to the page specified in wp_logout_url(), which by default leads to wp-login.php .
    Here’s my website, you can take a look! If necessary, I can provide data from the admin panel so that you can help with the setup or tell me how it can be fixed? Maybe you need to click some kind of jackdaw somewhere, or create some kind of page, or just change the theme or something else altogether, help!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @nestra,

    Would you mind giving the below-mentioned code a go using any code snippet plugin like this one? This should help any user of your website to be redirected to the my-account page once they log out.

    add_action('wp_logout', 'redirect_after_logout_to_my_account');
    function redirect_after_logout_to_my_account() {
    $myaccount_page_id = get_option('woocommerce_myaccount_page_id');
    if ($myaccount_page_id) {
    wp_safe_redirect(get_permalink($myaccount_page_id));
    exit;
    }
    }

    I hope it will work. Thanks!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.