mbr_is_failed_payment
Usage
This shortcode determines the content to be included based upon the failed payment status of the current visitor.
Parameters
None.
Validity
This shortcode is evaluated for any type of visitor.
Conditional Branching
[ELSE_is_failed_payment] conditional branching is supported.
Nesting
Shortcode nesting is NOT supported.
Examples
- Example 1
- Example 2
Will display "There is an issue with your account." if the visitor has a failed payment status:
[mbr_is_failed_payment]
There is an issue with your account.
[/mbr_is_failed_payment]
Will display "There is an issue with your account." if the visitor has a failed payment status. Otherwise it will display "Content for others.":
[mbr_is_failed_payment]
There is an issue with your account.
[ELSE_is_failed_payment]
Content for others.
[/mbr_is_failed_payment]
API
For direct use in PHP code use the conditional function mbr_is_failed_payment()
in a structure as illustrated here:
IF (mbr_is_failed_payment()) :
echo 'Your account is not in good standing.';
ENDIF;