[wt-reminder]
This shortcode allows you to display reminder messages for logged in users to add a target weight or weight / measurement entry for today.
The following examples are the default look of the shortcode:
[wt-reminder]
[wt-reminder type=”target”]
The shortcode supports the following arguments:
Argument | Description | Options | Example |
---|---|---|---|
type | The type of value to check for. Check that either weight entry has been added for today or a target. If set to "both", will display the message if both target and today's weight missing. | 'weight' (default), 'target' or 'both' | [wt-reminder type='target'] |
message | The message to be displayed if the check is true. This will override the default message. | String | [wt-reminder message='Get a target weight entered you!!!' type='target'] |
additional_css | Add an additional CSS class for the message box. | String | [wt-reminder additiona_css='wlt-css-class'] |
link | Wraps the notification in a link so you can direct the user to data entry page. | Link | [wt-reminder link='https://domainname.com/weight-entry'] |
If you wish to have complete control over message displayed, you may override the above arguments. The following example shows you how to display your own message box / HTML.
[wt-reminder]
Enter some custom message here
[/wt-reminder]