3
votes
1answer
155 views

Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles

I need to redirect logged-in and non-admin users, from page with id 172, to the home of the website. Note that users that are not logged in can actually see the page. add_action('admin_init', 'xyz'); ...
1
vote
2answers
764 views

Restrict dashboard access for specific user roles to specific actions

I have a script that enables a logged in user (role Author) to delete their own posts using get_delete_post_link(). However, I also want to be able to restrict the author's access to the dashboard. ...
0
votes
2answers
539 views

Access denied error when logged in as admin

What are the possible causes for getting the "You do not have sufficient permissions to access this page." message when logged in as admin? I've done a lot of searching and found a lot of possible ...