Developers rejoice! Automatic Login logs you in automatically on your local development installation if the following conditions are met:
- The
WP_ENVIRONMENT_TYPE
constant is defined as 'local'. - A user exists with the username 'admin' and password 'password'.
Alternatively, the AUTOMATIC_LOGIN_USER_LOGIN
and AUTOMATIC_LOGIN_USER_PASSWORD
constants can be used to define the login credentials for Automatic Login. Note that Automatic Login does not create a user for you and the user should already exist.
// Credentials for the Automatic Login plugin.
define( 'AUTOMATIC_LOGIN_USER_LOGIN', 'mycooluser' );
define( 'AUTOMATIC_LOGIN_USER_LOGIN', 'mycoolpassword' );
The 'snapshots' and 'wpsnapshots' user names are recognized for folks using 10up's Snapshots project sharing tool.
Automatic Login is hosted on the WordPress plugin directory and can be installed via the WordPress dashboard.
- Visit the Plugins page within your WordPress dashboard and select ‘Add New’
- Search for 'Automatic Login' and install the plugin
- Activate Automatic Login from your Plugins page
Automatic Login can be added as a dependency to your project via the wpackagist composer repository.