[memb_keap_has_creditcard]
Description
Conditional shortcode checking whether the member has at least one card on file with Keap. Use it to gate card-dependent content: payment prompts for members without a card, card-management links for members who have one.
Expired cards do not count: Keap drops them from the member's list, so the check reflects the cards a member can actually bill.
The member must be linked to a Keap contact: administrators see an admin notice, and nothing renders in feeds. If Keap cannot be reached, neither branch renders rather than guessing.
Shortcode Examples
Prompt members who have no card on file:
[memb_keap_has_no_creditcard]
You have no card on file. Add one to keep your membership active.
[/memb_keap_has_no_creditcard]
One block with both branches:
[memb_keap_has_creditcard]
Your card is on file. Review it on the payments page.
[else_memb_keap_has_creditcard]
Add a card to keep your membership active.
[/memb_keap_has_creditcard]
Shortcode Parameters
not
Inverts the condition. Default: no.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | Yes |
| Nestable | No |
| Accepts formatting | Yes |