ActiveCampaign
Also available forKeap

[memb_has_any_role]

Summary
Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s WordPress role.

Description

Conditional shortcode to control access to portions of a post, page or widget based on the logged in user’s WordPress role.

Shortcode Examples

Show content to the user with subscriber role.

[memb_has_any_role roles="subscriber"]
Show this to your subscribers
[/memb_has_any_role]
[memb_has_any_role roles="subscriber"]
Show this to your subscribers
[else_memb_has_any_role]
Show this content to other users
[/memb_has_any_role]

Shortcode Parameters

rolesA comma-separated list of WordPress user roles to check the user’s roles against.
except_rolesA comma separated list of WordPress user roles that the current user must not be one of in order for the test to succeed.
captureCapture the output of the shortcode and route it to a variable for later use. (?)
notYou can use the attribute not=”not”, to reverse the results of the test.
txtfmtA comma separated list of text processing functions to be used to post process the contact fields. (?)

Shortcode Attributes

ConditionalYes
NestableYes
Accepts formattingYes
CapturableYes