Code

[code]

[members capability=”subscriber” message”Please register to see content” ] This can only be read by subscribed members [/members]

[/code]

Parameters

[list style=”circle”]

  • capability: WordPress user capability (eg, subscriber, editor, administrator).
  • message: message when cannot access content

[/list]

View all roles and capabilities here: http://codex.wordpress.org/Roles_and_Capabilities

Example

[members capability=”subscriber”] This can only be read by subscribed members [/members]