Add a login link to the wp_nav_menu
Adding this snippet to the functions.php of your wordpress theme will add a login link to your wp_nav_menu or if the user is already logged in a logout link.
read moreDisplay different menus for logged-in users
Adding this snippet in the location you wish to display your navigation, would show one menu to logged-in users and another when they are not logged-in.
read moreDisable the allow_password_reset feature
Adding this snippet to the functions.php will disable the allow_password_reset feature from the login page. When using the lost password feature after you add this snippet wordpress will display “Password reset is not allowed for this user”.
read morethis months featured snippets
Extend auto logout period
Adding this PHP code to the functions.php of your wordpress theme will extend the length of time cookies are kept the example is set to 1 week. Please note the value is defined in seconds
read moreCheck if user is logged in
Using this PHP code in your wordpress theme will let you display alternate content to users that are logged in. You could use this to display a custom message to logged in users eg: register or welcome message for members.
read moreLogin / Logout
Adding this PHP code to your wordpress theme will provide users with the login and logout links.
read more








