Users & Login snippets

Login pages, redirects, roles and user screens, with safe defaults that won't lock you out.

Showing 20 snippets

Users & Login PHP Add a Sortable Registered Date Column to Users Show when each user signed up in the Users list, and click the column to sort newest or oldest first. Beginner WP 7.1 Users & Login PHP Set the Role for New Users in Code Lock the "New User Default Role" setting so new sign-ups always get the role you choose, even if someone changes the setting. Beginner WP 7.1 Users & Login PHP Stop Users Changing Their Own Email Address Only let administrators change a user's email address, so members and customers can't switch their account to a different email. Intermediate WP 7.1 Users & Login PHP Turn Off Password Resets for Administrators Block the "Lost your password?" reset for administrator accounts, so a hacked email inbox can't be used to take over the site. Intermediate WP 7.1 Users & Login PHP Add a Login Form Shortcode Put a WordPress login form on any page with [nahnu_login_form], and show a welcome message to users who are already logged in. Beginner WP 7.1 Users & Login PHP Log Users Out of Other Devices When They Log In Allow one active login per account. Logging in on a new device ends the sessions on every other device. Intermediate WP 7.1
Want it without code?Our plugins do the heavy lifting, with settings, updates and support.
Browse plugins
Users & Login PHP Remove the Language Switcher From the Login Page Hide the language dropdown that appears under the login form when more than one language is installed. Beginner WP 7.1 Users & Login PHP Hide the Login Page Behind a Secret Link Make wp-login.php return a 404 unless the visitor arrives through your secret link, without breaking logouts, password resets or saved logins. Intermediate WP 7.1 Users & Login PHP Log Failed Login Attempts to the Database Record every failed login with username, IP address and browser in a small database table, and clear out entries older than 90 days automatically. Advanced WP 7.1 Users & Login PHP Remove the Admin Bar for Non-Admin Users Hide the WordPress admin toolbar on the front end for any user who isn't an administrator, keeping the public-facing site clean for logged-in subscribers, customers, and members. Beginner WP 7.1 Users & Login PHP Show Last Login Date in the Users Table Record when each user last logged in and show it as a sortable column on the Users screen, in your site's timezone. Intermediate WP 7.1 Users & Login PHP Make the Whole Site Members-Only Force all unauthenticated visitors to the WordPress login page, useful for membership sites, intranets, client preview sites, and staging environments. Intermediate WP 7.1 Users & Login PHP Redirect After Login Based on User Role Send users to different URLs after login depending on their role, administrators go to the dashboard, customers go to My Account, and subscribers go to a custom page. Intermediate WP 7.1 Users & Login PHP Custom Login Page Logo, URL, and Styles Replace the WordPress logo, link, and tooltip on the login page with your own brand, and add custom CSS to match your site's colour scheme, a standard white-label step for client site handoffs. Beginner WP 7.1 Users & Login PHP Let Users Log In With Email Only Stop people logging in with a username, so only an email address and password work on the login form. Beginner WP 7.1 Users & Login PHP Tick “Remember Me” by Default Pre-tick the "Remember Me" box on the login form so users stay logged in for two weeks instead of until they close the browser. Beginner WP 7.1 Users & Login PHP Redirect Users After They Log Out Send people to your home page, or any page you choose, after they log out instead of the "You are now logged out" screen. Beginner WP 7.1 Users & Login PHP Add a Log In / Log Out Link to a Menu Add a link to your main menu that says "Log in" for visitors and "Log out" for logged-in users. Beginner WP 7.1 Users & Login PHP Show a Message on the Login Page Add a short message above the login form, such as a support link or a notice about scheduled maintenance. Beginner WP 7.1 Users & Login PHP Add a Custom Field to User Profiles Add an extra field, like a job title or phone number, to the user profile screen and save it with the user. Intermediate WP 7.1

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only