Tag: wpmem_admin_after_block_meta
-
Restrict a post or a page to a specific user role
While the core plugin restricts posts to logged in users, and can also create memberships for other types of restriction, sometimes you may wish to restrict content to a user role. This custom code snippet can be copy-pasted to wherever you store custom code and will add a list of roles to the WP-Members restriction…
-
Restrict a post or a page to a specific user role – multiple select version
Similar to how we took the post/page restriction for specific users to a multiple select version, this post takes the restrict content by role idea and expands it to a multiple select version. This is an extension of the ideas presented in the tutorial Restrict Content by Role with the twist that this version makes some…
-
Restrict Post or Page Access to Specific Users – Multiple Select Version
This is an extension of the ideas presented in the tutorial Restrict Post or Page Access to a Specific User with the twist that this version makes some minor changes to incorporate an HTML multi-select for selecting multiple users for access to a post.
-
Restrict content by user level
I have written code snippets before on how to restrict content by user level, but that particular code snippet is based on using categories as the user levels, with higher level users still being able to access lower level content. For example, Silver, Gold, and Platinum level users having access or not to categories of the…
-
Restrict Post or Page Access to a Specific User
Every once in awhile, I get a question about restricting content (either page or post) to a specific user. There is a limited way to do that with the wpmem_securify filter, similar to the method for blocking content by category and user level. This process is actually easier than blocking by levels or categories because…