Creating post preview without admin permissions?
-
I’d like to use the post preview feature that comes with WordPress, but without having to be logged in as an admin:
blog.com/?p=123&preview=true
What I’d like to do is tack on to the end of the above url a unique ID (which is generated for each post), so that you can view the preview if not logged in, but you know the unique ID:
blog.com/?p=123&preview=true&rand=abc
What’s the best way to achieve this? I couldn’t find the code that controls the permissions for post preview, so I’d be grateful if someone could let me know where to find the appropriate code. ??
- The topic ‘Creating post preview without admin permissions?’ is closed to new replies.