Overview

With the installation of Enwikuna License Manager & Enwikuna License Manager Pro you have access to shortcodes which you can place anywhere on your website.

WordPress Shortcodes are special code fragments that can be used in posts, pages or widgets to insert dynamic content and activate certain functions. They are written in square brackets [ ] and can display text, images, videos, forms or other user-defined content without the user having to know HTML or PHP. Shortcodes offer an easy way to perform complex functions and make the content of your website more flexible. By using shortcodes, you can extend the functionality of your website and integrate different elements seamlessly, which both improves the user experience and simplifies the administration and maintenance of the website.


License table

Enwikuna License Manager licenses table shortcode
[elm_licenses_table licenses_table_classes="class-1,class-2" exclude_columns="license-key,product,activations,expires-at,status" filter_status="in_stock,trial_approved,sold,delivered,inactive,active,locked" filter_expired="1" filter_product="1860"]

Description

This shortcode can be used to display a table of all licenses of the currently logged in user. If no user is logged in, a message is displayed instead, prompting the user to log in in order to view the table. You also have the option of using attributes and filters to modify the output.

Important: You can delete all attributes and filters from the shortcode, as they are all optional!


Attributes

To make it as easy as possible for you to customize the table, we have added some attributes that can be used to modify the appearance of the table.

AttributeDescription
licenses_table_classesYou can use this attribute to add comma-separated HTML classes to the table.
exclude_columnsYou can use this attribute to hide columns in the table.

Filter

You can use the provided filters to control the data output in the table.

FilterDescription
filter_statusWith this filter you can define different statuses, separated by comma, which the licenses must have in order to be displayed.
filter_expiredYou can use this filter to specify that only valid or expired licenses should be displayed (1 or 0).
filter_productWith this filter, you can define a comma-separated list of product numbers that the licenses must have in order to be displayed.

Redeem distributor code (Pro)

Enwikuna License Manager redeem distributor code shortcode
[elmp_redeem_distributor_code redeem_distributor_code_btn_classes="class-1,class-2" redeem_distributor_code_btn_text="Redeem to scream!" redeem_distributor_code_login_text="If you want to win, log in."]

Description

This shortcode can be used to display a form through which a user can redeem a distributor code. If no user is logged in, a message is displayed prompting the user to log in in order to use the form. It is also important that the redemption of distributor codes is activated within the account settings. You also have the option of using attributes to modify the output.

Important: You can delete all attributes from the shortcode, as they are all optional!


Attributes

To make it as easy as possible for you to customize the form, we have added some attributes that can be used to modify the appearance of the form.

AttributeDescription
redeem_distributor_code_btn_classesYou can use this attribute to add comma-separated HTML classes to the form.
redeem_distributor_code_btn_textYou can use this attribute to define your own text for the button to submit the form.
redeem_distributor_code_login_textYou can use this attribute to define your own text for the login notice.

We will be happy to add further shortcodes if required! Just talk to us about it.