Shortcodes

[wlt-reminder]

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

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:

[wlt-reminder /]

[wlt-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' [wlt-reminder type='target' /]
message The message to be displayed if the check is true. This will override the default message. String [wlt-reminder message='Get a target weight entered you!!!' type='target' /]
additional_css Add an additional CSS class for the message box. String [wlt-reminder additiona_css='wlt-css-class' /]
link Wraps the notification in a link so you can direct the user to data entry page. Link [wlt-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.

[wlt-reminder]

Enter some custom messageĀ here

[/wlt-reminder]

Yes No Suggest edit
Help Guide Powered by Documentor
Suggest Edit