Support » Plugin: User Registration - Custom Registration Form, Login Form And User Profile For WordPress » I want to get POST_ID and use it for smart tags

  • Resolved kyosuketanaka

    (@kyosuketanaka)


    Hello.

    I would like to get the ID of the page where the registration form is located and include it in the confirmation e-mail.

    Specifically, we want the authentication link to be the URL of the page where the registration form is located.
    Registration forms are located on some pages.

    e.g. https://example.com/page_slug?ur_token=XXXXXXXX

    However, even if I use ‘user_registration_add_smart_tags’, I cannot get the POST_ID because Ajax is used.

    Please give me solution for this.

    • This topic was modified 4 months, 2 weeks ago by kyosuketanaka.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter kyosuketanaka

    (@kyosuketanaka)

    Sorry if my English is hard to read.
    Please let me know if there are any sentences you don’t understand.

    In the confirmation e-mail, I would like to use the following URL.
    {{home_url}}/{{SLUG}}?ur_token={{email_token}}

    The goal is to be able to return to the same page from the confirmation email after registering an account.

    Please lend your wisdom.

    • This reply was modified 4 months, 2 weeks ago by kyosuketanaka.
    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @kyosuketanaka,

    Using a smart tag redirection to the previous registration page is not possible because the slug does not detect your specific page slug in emails. Your example of modifying the confirmation token does not work because it requires an additional function to detect the page where the registration is used, and so on.

    Could you please clarify whether the same forms are used on different pages or whether each page has a different registration form? Once we get the details from you, we will look into it from our end.

    Note: We strongly advise against changing the confirmation token on your site because it will affect the email confirmation feature.

    Regards!

    Thread Starter kyosuketanaka

    (@kyosuketanaka)

    Thank you for your reply.

    I am using the same form on multiple pages.

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @kyosuketanaka,

    If you use the same form on different pages, it is impossible to redirect users to the same page using the email confirmation.

    You can still achieve this feature in two ways: create a specific form for a specific page or use different login options such as auto approve and auto-login.

    Please let me know if you are interested in any of these methods. I will provide you with the code snippet for you.

    Regards!

    Thread Starter kyosuketanaka

    (@kyosuketanaka)

    I understood that I could not achieve this as it is now.

    For now, the login option is set to “Auto approval and auto login” to prevent users from leaving the page where they have registered.

    I hope there will be an update in the future that will resolve this issue.
    Thanks for taking the time to address this issue.

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @kyosuketanaka,

    Thank you for the update.

    We will close this thread. If needed, please create a new we will get back to you as soon as possible.

    Regards!

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