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


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.

Form options

To customize the messages users see when filling out the form, use the Custom messages section at Uncanny Codes > Settings.

To require that users check a Terms and Conditions checkbox before submitting the form, enter a message in the Terms & Conditions section at Uncanny Codes > Settings.



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?

16 replies
  1. Trond Skaaare
    Trond Skaaare says:


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


    • 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.

  2. Rommel Paa
    Rommel Paa says:


    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.

    • 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.

  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.

    • 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”]

  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?

    • 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.

  5. Ben
    Ben says:

    With the login form shortcode, is there any way the user just needs to enter the enrolment key without getting them to register again? It seems double handling that a group leader will enrol a student, yet they also need to enrol themselves. If a key is generated and emailed can we just have the enrolment form request the key then proceed?

  6. Carolyn
    Carolyn says:

    I’ve used [uo_code_registration] – works amazingly well! However, I want to edit the field label “Email/Username” to just say “Email”. How would I change this?


    • Ryan
      Ryan says:

      I’m afraid that to change strings of interface elements that we don’t have a UI for, you will need to use a translation plugin. We typically test against and use Logo Translate. With it, you can scan for all translatable strings and replace them with any other text you want to use instead.

  7. Rak
    Rak says:

    I have two products: Product A & Product B

    Based on the product-specific redeem code the customer enters, I would like to redirect each customer to different Thank You Page respectively (ie. Customer enters: Product A redeem code –> Get redirected to “Thank you for purchasing Product A” Page)

    How can I achieve this?

    Remarks: I’m doing this for Google Analytics tracking purpose



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 *