[memb_is_affiliate]
Description
Displays enclosed content for AffiliateWP affiliates. When status
is provided (default active), the affiliate's status must match
exactly, use status="" to match affiliates in any status, or
status="pending" / status="rejected" / status="inactive" for
those specific states.
Administrators always pass the check (handy for previewing
affiliate-only content). The not attribute inverts the result.
Shortcode Examples
[memb_is_affiliate]Affiliate dashboard content[/memb_is_affiliate]
Pending affiliates only, with else block:
[memb_is_affiliate status="pending"]
Your application is under review.
[else_memb_is_affiliate]
Apply to become an affiliate!
[/memb_is_affiliate]
Shortcode Parameters
status
AffiliateWP status to require: active, pending, inactive,
rejected. Empty string matches any status. Default: 'active'.
not
Inverts the result. Default: false.
txtfmt
Text format applied to the output.
capture
Output capture mode.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | Yes |
| Nestable | Yes |
| Accepts formatting | Yes |