[account_expiration] Shortcode

The [account_expiration] shortcode allows you to display to your members when their account expires. It has several parameters you can optionally use:

Format: Set the format of the expiration date using the PHP date() syntax. The default is “m/d/Y”.

Lifetime: Set the text to be displayed if the account is a lifetime account. The default is “Lifetime”.

Expired: Set the text to be displayed if the account is expired. Additionally, you can wrap content in the [account_expiration] [/account_expiration] tags to display rich content if the account is expired.

Examples

Default
Your Account Expires On: [account_expiration]
Sample Output:
Your Account Expires On: 10/15/2011
Formatted
Your Account Expires On: [account_expiration format="D, d M Y"]
Sample Output:
Your Account Expires On: Sat, 15 Oct 2011
Lifetime
Your Account Expires On: [account_expiration lifetime="Never expires!"]
Sample Output:
Your Account Expires On: Never expires!
Expired message
Your Account Expires On: [account_expiration expired="Sorry, your account has expired"]
Sample Output:
Your Account Expires On: Sorry, your account has expired
Expired with rich content
Your Account Expires On: [account_expiration] Sorry, your account has expired. <strong>But wait, there's good news!</strong> You can renew now: 

Could not load product information

[/account_expiration]
Sample Output:
Your Account Expires On: Sorry, your account has expired. But wait, there’s good news! You can renew now:
Price: $89.00

Related Posts