[memb_has_profile_type]
Description
Checks the current user's BuddyPress member type(s) against the
type attribute. Multiple profile types are supported, the check
passes when any one matches.
Administrators always pass the check. The not attribute inverts
the result.
When BuddyPress's bp_get_member_type() is unavailable, admins see a
diagnostic notice and everyone else sees nothing.
Shortcode Examples
[memb_has_profile_type type="instructor"]Instructor resources[/memb_has_profile_type]
Inverted:
[memb_has_profile_type type="instructor" not="true"]Student resources[/memb_has_profile_type]
Shortcode Parameters
type
Member type slug to require. Default: ''.
not
Inverts the result. Default: false.
txtfmt
Text format applied to the output.
capture
Output capture mode.
Shortcode Attributes
| Attribute | Value |
|---|---|
| Conditional | Yes |
| Nestable | No |
| Accepts formatting | Yes |