Codes can be generated for either LearnDash Courses OR LearnDash Groups. Combinations are unfortunately not possible. Once a selection is made, a list of available courses or groups is displayed further down the page. The courses and groups must exist in the system before they can be associated with codes.
Begin by choosing the Code Type that you want to generate. This is a new field introduced in version 2.0 of the plugin; “Default” is the only option that existed previously and the appropriate selection in most cases. A “Paid” code is used with WooCommerce to indicate that the associated code has been paid for previously; when redeemed as part of a purchase that includes a product that requires a LearnDash code (see this article), the price of the associated product is reduced to $0. “Unpaid” codes are also tied to WooCommerce transactions but charge the user the full amount. If the codes you generate can be used outside of Woo transactions, “Default” should be selected.
Choose the Number of Unique Codes to generate. This is how many codes the system will create when then Save Changes button is clicked. This number can be as low or as high as is needed.
The Number of Uses Per Code defines how many times a code can be redeemed. For codes that are specific to a user, this should likely be “1”. For codes that will be shared among a group of users, this may be much higher. It’s not always practical to distribute individual codes, so this field allows control over how much a code can be shared.
Choose the Number of Characters and Dash Separation to define the code pattern however you might like. There is no minimum length, but to ensure codes are unique and not easily guessed, we suggest at least 8 characters.
Setting a specific Prefix or Suffix is always recommended. This makes codes much easier to identify at a glance and to manage, as without one there’s no easy way to identify generated codes. When selling licenses to organizations, we recommend that the organization name or a suitable abbreviation be used for the prefix.
Once generated, the batch of codes is added to the View Codes page of the plugin. Also note that generated codes only use capital letters, so if you’re not sure what a character is, remember that codes cannot contain lower case letters.