[wt-user-settings]
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 | [wt-user-settings allow-delete-data="false"] |
redirect-url | If specified, a URL that the user should be redirected to after completing the form. | A URL | [wt-user-settings redirect-url="https://www.somewhere.com/settings-saved"] |