Redirect away from page if user is not admin
Question
I have a Wordpress page that should only be visible to the admin. Any other kind of user role, or logged-out visitors, should be redirected away to the home page if they ever try to visit that page.
Most snippets I found are good for redirecting after logging in or even redirect based on
0
php, plugins, wordpress.org
3 years
0 Answers
63 views