Restrict Content by Multiple User Meta Keys

Restrict Content by Multiple User Meta Values

This feature allows you to restrict/allow post/page/custom post type content based on multiple user meta values. You can place your restricted content within the shortcode to limit the access.

Allow Content based on User Meta Values

This feature allows you to allow content for users based on multiple user meta values.  You can use allowed_meta_keys attribute to define the user meta keys for allowing content. Let’s take a look at the usage of this attribute.

Allowing Content based on Multiple User Meta Values – Option 1

[[wppcp_private_content allowed_meta_keys="city,country"  allowed_meta_values="New York,USA" ]
Private Content for Users who has New York for City meta key and
USA for Country meta key
[/wppcp_private_content]]

 

Allowing Content based on Multiple User Meta Values – Option 2

[[wppcp_private_content allowed_meta_keys="city,country"  allowed_meta_values="New York,USA"                                

allowed_meta_operator="OR" ]

Private Content for Users who has New York for City meta key or
USA for Country meta key
[/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