• I am using S2Member for several of my websites and want to say thanks for the development and work put into it.. it is awesome!

    I have a site where I need to manually allow specific users access to specific pages. I have 6 protected pages and 30 users. I need to assign user 1 access to page 3 and 5, user 2 to page 2, user 3 to page 1 and 3, etc. What is the best way to do this? I can’t assign membership levels as the combination of pages varies with the individual. I am using this as a tool for my employees, so there is no membership payment. Any help and guidance is appreciated!

    https://www.ads-software.com/plugins/s2member/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The best way would be to use custom capabilities (ccaps).

    For example, go to the edit screen for page 1, and you will see a Require Custom Capabilities? box on the right somewhere. Enter whatever text you like here to give the ccap a name, but I’d suggest Page 1 to keep it simple. Hit Update. Do that with each page, giving each a different name.

    Now go into the WP Users list, and select a user to edit. Towards the bottom you will see a box called Custom Capabilities. Put the name of the relevant ccaps there. If you need to add more than one, separate them with commas, and hit Update.

    Thread Starter fattdaddyj

    (@fattdaddyj)

    Thank you for the reply! I originally set the page level restriction for each page to subscriber level 1 and allowed each user the same subscriber level. Each page was accessible via the nav menu.

    Now that I have followed your instructions and given each page a unique ccaps, how will the user access their assigned pages?

    Well, you can still have the pages as level 1 too. You don’t need to change that. So everyone should still be able to see where the pages are via the nav menu.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assign specific page access to specific users’ is closed to new replies.