Restrict A WordPress User to one page without using a plugin

Don’t want a huge plugin to restrict a single WordPress user to a single page?

Either did I, so I wrote this:

Where $restricted_user is the ID of the restricted user and $permitted is the ID of the only page the restricted user can access/edit.

Leave a Reply

%d bloggers like this: