Skip to main content

mbr_show_after

Usage

This shortcode determines the content to be included based upon whether the current date is after the specified date adjusted as requested.

The specified date can be:

  • The current date.

  • Any date formatted according to the the syntax rules set for PHP as detailed within date formats.

  • Any ActiveCampaign contact date field. Most ActiveCampaign date fields are properly formatted and will function correctly.

    The date field is specified by using the ActiveCampaign personalization tag for the contact field (Perstag) with the characters % before and after the tag for the date parameter. The available Perstags can be found in ActiveMember360, Utilities, Contact Fields.

    Alternatively see [mbr_contact] for information upon how to reference ActiveCamapign contact fields.

  • The logged in users registration date for WordPress specified by using #USER_REGISTERED# for the date parameter.

Parameters

ParametersDescription
dateThe specified date must provide a value that follows the syntax rules set for PHP as detailed within date formats. Most ActiveCampaign date fields are properly formatted and will work.
Default: none.
Required: yes.
adjustAny text operator that follows the syntax rules as detailed for PHP strtotime(). This will modify the specified date.
Default: none.
Required: no.

Validity

This shortcode is evaluated for any type of visitor.

Conditional Branching

[ELSE_show_after] conditional branching is supported.

Nesting

Shortcode nesting within is NOT supported.

Examples

Displays 'Here is the special offer' if the current date is after 2021-Dec-05:

[mbr_show_after date='20211205']
Here is the special offer
[/mbr_show_after]

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.