Shortcodes

[wlt-user-settings]

The following shortcode is only available in the Pro version of the plugin.

A simple shortcode with no arguments that renders the Settings form. As you can see from the example below, the user is able to edit their height (if BMI enabled) and preferred units for weight and measurements (if enabled) as well as specify date format.

The user has the additional option to delete all of their weight history.

Shortcode Arguments

The shortcode supports the following arguments:

Argument Description Options Example
allow-delete-data If set to false (default is true), the section allowing users to delete their own data is hidden. 5.1.1 onwards. True (default) or false [wlt-user-settings allow-delete-data="false"]
redirect-url (5.1.4+) If specified, a URL that the user should be redirected to after completing the form. A URL [wlt-user-settings redirect-url="https://www.somewhere.com/settings-saved"]
Yes No Suggest edit
Help Guide Powered by Documentor
Suggest Edit