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

Shortcode Parameters​

capture:  Capture the output of the shortcode and route it to a variable for later use. (?)

except_roles:  A comma separated list of WordPress user roles that the current user must not be one of in order for the test to succeed.

not:  You can use the attribute not=”not”, to reverse the results of the test.

roles: A comma separated list of WordPress user roles to check the user’s roles against.

txtfmt: A comma separated list of text processing functions to be used to post process the contact fields. (?)

Shortcode Attributes

Conditional: Yes (?)
Nestable: Yes (?)
Accepts formatting: Yes (?)
Capturable: Yes (?)

9 ways to add more value to your membership site


This Applies To