Is it possible to ‘filter’ which pages are shown in the ‘edit’ screen for pages ( http://cl.ly/6nLC ) in WordPress? I have looked in the action / hook section of WordPress for plugin developers but I could not find any.
What I am trying to accomplish is is that certain users can edit certain pages (and child pages) and other persons cannot edit those pages but might be able to edit other pages.
I have allready written a plugin which makes it possible to put different users in differtent groups, which now just needs to have different rights, which user is member of which group is stored in the user_meta table.
However if there is ‘any’ filter hook / method for this, can someone point this out, I think I will be able to go further from there.
Kind regards.
You can use a
posts_where
filter to add a condition to the SQL query to filter out some pages. Aload-{filename}
action can be used to ensure the filter is only applied when managing pages.