Is there a function that will show all posts the user has access to?
-
Hi Alex,
Thank you for the plugin, I just have a quick question. Is there a function I can call that will provide the Post IDs that a user or group has access to?
My theme has an “Instant Search” feature that displays search results as you type (much like Google.com does). The problem is that it shows ALL possible results, and not just ones that a user has access to. I’m hoping to modify the theme by checking first if the user has access to a post before the theme displays it.
I did see this code snippet about returning groups that a user is in, but not posts that a user has access to: https://github.com/GM-Alex/user-access-manager/wiki/Code-Snippets
Any input at all about this would be greatly appreciated. Thanks!
John
- The topic ‘Is there a function that will show all posts the user has access to?’ is closed to new replies.