Change WordPress user roles and capabilities Forums How to or FAQ prompt for user login, for restricted content-pages

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3689
    [email protected]

    Using “user role editor” Or custom plugin/hook.. is it possible/the right way to redirect users to the login page, with the wp_login.php?redirect_to={current_page_url} so they don’t just see “you are not authorized to see this content etc.. ” even before they are prompted to login. It’s quite a basic requirement so wondering what are the common approaches to handling this ?


    User Role Editor does not offer a redirection option currently. Look at redirection plugins from repository.
    Thanks for suggestion. As you are not the 1st person who asked about a redirection feature instead of HTTP 404 or simple access error message, I will consider to add it to one of a future updates.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.