The site has two menus. How to disable navigation through the pages of one of the menus, if the user is not authorized (display an authorization message)
- oneThe “message about the NEED for authorization” should be output when non-authorized users are sent to such pages. No matter how they fall. A menu can be hidden from unauthorized. - SeVlad
|
1 answer
You can use the is_user_logged_in () function to determine if a user is logged in, and depending on the returned result, display a menu with links to pages or a menu with a list of pages without links, but with a modal click authorization window
|