Redirect to home page instead of my account after login

This topic has 5 replies, 3 voices, and was last updated 1 day, 6 hours ago ago by Tony Rodriguez

  • Avatar: islam
    islam
    Participant
    October 14, 2026 at 09:39

    Hi,

    I’ve opened a ticket before regarding this issue, and you tried to change the redirect using woocommerce hook/filter but it didn’t work and I was advised to check the installed plugins suspecting the redirection is forced from one of them, but actually I’ve found the redirection is implemented in xstore code, I wonder if you could change it in next releases or make it configurable!

    kindly check the file and code in:
    themes/xstore/framework/woo.php
    if ( !function_exists(‘etheme_woocommerce_force_proper_login_redirect’) ) {
    $redirect = wc_get_page_permalink( ‘myaccount’ ) . ‘?logged_in=’ . time() . ‘&nocache=’ . uniqid();

    Best Regards,
    Islam

    Content is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    October 14, 2026 at 09:49

    Dear @islam,

    It is not permitted to modify the code directly in the parent theme, as these changes will be overwritten with the next update. As you can see, many functions and the current function has a wrapper with “if (!function_exists)”. You can copy the inner content (inside the condition) to your child theme’s functions.php file and implement the modifications there. For more details, please visit: https://developer.wordpress.org/themes/advanced-topics/child-themes/.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: islam
    islam
    Participant
    October 14, 2026 at 10:56

    Perfect thanks Jack.

    Avatar: islam
    islam
    Participant
    October 14, 2026 at 10:56

    Thanks for the support! My topic “Redirect to home page instead of my account after login” has been successfully resolved.

    Avatar: Tony Rodriguez
    Tony Rodriguez
    Support staff
    October 14, 2026 at 10:56

    Dear islam,

    We really appreciate your time and engagement within the WordPress & WooCommerce community

    Your feedback drives every improvement we make in XStore — helping us deliver a smoother and more flexible experience with each update.

    Your input makes a real difference.

    Topic closed.
    The 8Theme Team

  • Viewing 5 results - 1 through 5 (of 5 total)

The issue related to '‘Redirect to home page instead of my account after login’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.