1. Home
  2. Knowledge Base
  3. Uncanny LearnDash Codes
  4. Using Codes With the Built-In Registration Form

Overview

custom-regIf you want to use code redemption on registration, we recommend Gravity Forms first, then Theme My Login, but if neither is available then a registration shortcode is included in the plugin. To use it, create a new page in WordPress and add the User Code Registration shortcode or block. This will add a very basic registration form to the page that includes a code redemption field.

Shortcode/Block

[uo_code_registration]

Block Name: User Code Registration

Attributes/Block Settings

Attribute/Block Setting NameDescriptionAttribute/Block Setting ValuesDefault Value
redirectRedirects the user to the specified page after they submit the formA relative or absolute URLnone (keeps user on same page)
code_optionalSpecifies whether or not the registration code is an optional field"yes" or "no"no
auto_loginSpecifies whether or not the user should automatically be logged in on form submission"yes" or "no"yes
roleSpecifies the new user's roleany valid WordPress role (e.g. "group_leader")subscriber

Was this article helpful?

10 replies
  1. Trond Skaaare
    Trond Skaaare says:

    Hi

    I am trying to make a registration using this code:
    [uo_code_registration]
    Is is possible for me to use Norwegian names for the fields instead of “First name” use “Fornavn”

    Thanks
    Trond

    Reply
    • Ryan
      Ryan says:

      Yes, I checked the string and confirmed that it is translation ready. You must use a translation plugin to change this text, but it should be recognized as translatable by whatever tool you use. If it’s not working, please submit a ticket, as we’re not able to support issues directly using the Knowledge Base.

      Reply
  2. Rommel Paa
    Rommel Paa says:

    Hi

    Im tried to input the shortcode [uo_code_registration] on our editor and when we click preview it did not show the form. It seems that the shortcode is notworking we tried to test and input again the shortcode but it did not work.

    Reply
    • Ryan
      Ryan says:

      I’m afraid we can’t provide site-specific support in the Knowledge Base. Can you open a ticket or send us an email with more detail? If our Uncanny LearnDash Codes plugin is definitely active and you’re not using any kind of page builder, it sounds like a problem that needs further investigation.

      Reply
  3. david joyce
    david joyce says:

    What would the code addition look line to redirect. [uo_code_registration] I do not know how to write the redirect portion.

    Reply
    • Ken Young
      Ken Young says:

      Hi David. It would look like this: [uo_code_registration redirect=”https://google.com”] or like this: [uo_code_registration redirect=”/dashboard”]

      Reply
  4. Arsenii
    Arsenii says:

    Tell me, how can I display the registration code field in the standard registration form woocomerce or wordpress?
    So how is the finished form displayed on shotcode, and you only need a code field?

    Reply
    • Ryan
      Ryan says:

      I’m afraid that’s not a scenario we can support. If a code should be added as part of WooCommerce workflow, it should be done using the code option that we build into the checkout page. It may certainly be possible to build a workaround, but it is not something we could support.

      Reply

Comments/Questions

Please note that this is not an official support channel and questions/comments may go unanswered.
To request support, log in to your account and click Submit a Request.

Leave a Reply

Your email address will not be published. Required fields are marked *