Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @chrisdoc7,

    Thank you for reaching out. To address the issue, could you please enable AJAX on the login form? You can do this by navigating to User Registration >> Settings >> General >> Login Options or by referring to this screenshot: https://prnt.sc/As6jhagA8omh

    Once AJAX is enabled, we can check the network tab by inspecting your site. Alternatively, you can check the log under User Registration. Go to User Registration >> Tools >> Logs to view it. If there are existing logs and you’re unsure which to send, please delete the old ones, try logging in to recreate the issue, and then send us the new log.

    Additionally, if you have any security or caching plugins active, please deactivate them temporarily and see if the issue persists.

    Let us know once you’ve completed these steps, and I’ll follow up accordingly.

    Regards!

    Thread Starter chrisdoc7

    (@chrisdoc7)

    Hi @sanjuacharya77,

    Thank you for your answer. I activated the option “Ajax Login” and now it is working fine!

    I need to redirect the user to a specific page after login. In the file “/templates/myaccount/form-login.php” I see this tag:

    <input type="hidden" name="redirect" value="<?php echo isset( $redirect ) ? esc_attr( $redirect ) : esc_attr( the_permalink() ); ?>" />

    But I don’t know how to set the $redirect variable. In the plugin’s options I don’t see it. Can you help me please?

    Plugin Support sanjuacharya77

    (@sanjuacharya77)

    Hi @chrisdoc7,

    Please use the following code to implement redirection after login
    add_filter( 'user_registration_login_redirect', 'ur_redirect_after_login', 10, 2 );
    function ur_redirect_after_login( $redirect, $user ) {
    return 'sample-page';
    }

    Note: Please replace sample-page with the page slug where you want to redirect.
    Let us know whether it works for you or not and I will get back to you.

    Regards!


    Thread Starter chrisdoc7

    (@chrisdoc7)

    Thank you so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.