Forums

How to prevent users accessing certain pages (1 post)

  1. emzdesign
    Member
    Posted 3 years ago #

    Ok,

    Basically I have created a site where users can register and login etc. And the only links they see are to write a post, or to edit their profile.

    The only thing I'm worried about is if a user gets curious and tries accessing the index file in wp-admin.

    They won't be able to change anything, but I've changed the write post and profile pages to match the site and if they access the index file in wp-admin they'll see that everything else is messed up.

    Is there a php code I can use so that if the user is a regular user and they access wp-admin it redirects them to the homepage?

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.