Restrict Content by Capabilities

Restrict Content by Capabilities

This feature allows you to restrict post/page/custom post type content based on WordPress user capabilities using a shortcode. You can place your restricted content within the shortcode to limit the access.

Allow Content for User Capabilities

This feature allows you to allow content for users with certain user capabilities.  You can use allowed_capabilities attribute to define the user capabilities for allowing content. Let’s take a look at the usage of this attribute.

Allowing Content for One User Capability


[wppcp_private_content  allowed_capabilities="read" ]
Private Content for Users with read Capability
[/wppcp_private_content]

Allowing Content for Multiple User Capabilities


[wppcp_private_content  allowed_capabilities="read,edit_posts" ]
Private Content for Users with read or edit_posts User Capability
[/wppcp_private_content]

Allowing Content for Multiple User Capabilities of Single User

[wppcp_private_content  allowed_capabilities="read,edit_posts"  capability_operator="AND" ]
Private Content for Users with read and edit_posts Capabilities
[/wppcp_private_content]

Block Content for User Capabilities

This feature allows you to block content for certain user capabilities. You can use blocked_capabilities attribute to define the user capabilities for blocking content. Let’s take a look at the usage of this attribute.

Blocking Content for One User Capability


[wppcp_private_content blocked_capabilities="read" ]
Private Content Blocked for Users with read User Capability
[/wppcp_private_content]

Blocking Content for Multiple User Roles


[wppcp_private_content blocked_capabilities="read,edit_posts" ]
Private Content Blocked for Users with read or edit_posts User Capability
[/wppcp_private_content]

Blocking Content for Multiple User Roles of Single User


[wppcp_private_content blocked_capabilities="read,edit_posts" capability_operator="AND" ]
Private Content Blocked for Users with read and edit_posts User Capabilities
[/wppcp_private_content]

WP Private Content Pro

Extend Features of Free Version
Simple Setup
Advanced Restriction Rules
Membership & Private Page Management
Priority Support
VIEW MORE