Title: Secure Login Section
Last modified: August 19, 2016

---

# Secure Login Section

 *  Resolved [justin105](https://wordpress.org/support/users/justin105/)
 * (@justin105)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/secure-login-section/)
 * Hello,
 * I am about to start creating a website for a client and will need a login section
   for registered users where they will see a different menu bar or extra menu bars.
   eg
 * Non Registered members will see:
 * Home | About | Contact Us | Login / Register
 * Registered users will see:
    Home | About | Contact Us | **Buy Products** | Logout
   |
 * The Login section has to be viewable by all and on the front-end of the website.
   Once logged in they will see the extra menu on the top or a menu that I will 
   create on the sidebar.
 * Anyone got any Ideas if there is a plugin or anything?
 * Thanks
 * Justin

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Micah Cooksey](https://wordpress.org/support/users/micahcooksey/)
 * (@micahcooksey)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/secure-login-section/#post-1621160)
 * You might give this a read: [http://codex.wordpress.org/Function_Reference/get_currentuserinfo](http://codex.wordpress.org/Function_Reference/get_currentuserinfo)
 *  Thread Starter [justin105](https://wordpress.org/support/users/justin105/)
 * (@justin105)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/secure-login-section/#post-1621178)
 * Thanks Micah Ill check it out.
 * Justin
 *  Thread Starter [justin105](https://wordpress.org/support/users/justin105/)
 * (@justin105)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/secure-login-section/#post-1621179)
 * Hmm not the best option Im sure someone has made a plugin for this kind of thing
   im trying to do.
 *  [Micah Cooksey](https://wordpress.org/support/users/micahcooksey/)
 * (@micahcooksey)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/secure-login-section/#post-1621189)
 * Try this:
 *     ```
       <?php if ( $user_ID ) { ?>
           <a href="<?php bloginfo('url'); ?>/wp-login.php">Login/Register</a>
       <?php } else {   ?>
           <a href="buy products link">Buy Products</a>
           <a href="<?php bloginfo('url'); ?>/wp-login.php?action=logout">Logout</a>
       <?php } ?>
       ```
   
 * I haven’t tested that, so make a backup before you change anything 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Secure Login Section’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Micah Cooksey](https://wordpress.org/support/users/micahcooksey/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/secure-login-section/#post-1621189)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
