Title: Automatic Login
Author: Plugin Pizza
Published: <strong>14 Tháng 2, 2023</strong>
Last modified: 2 Tháng 1, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/automatic-login/assets/banner-772-250.png?rev=3125975)

![](https://ps.w.org/automatic-login/assets/icon.svg?rev=3125975)

# Automatic Login

 Bởi [Plugin Pizza](https://profiles.wordpress.org/pluginpizza/)

[Tải về](https://downloads.wordpress.org/plugin/automatic-login.3.0.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/automatic-login/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/automatic-login/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/automatic-login/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/automatic-login/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/automatic-login/)

## Mô tả

Developers rejoice! Skip the login screen during local development. Automatic Login
logs you in automatically on your local development environment.

#### Quick Start

 1. Install and activate the plugin.
 2. Define the [WP_ENVIRONMENT_TYPE](https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#wp-environment-type)
    constant as `local` in your `wp-config.php` file.
 3. Create a user with username `admin` and password `password`.
 4. That’s it—you’ll be logged in automatically!

#### Log in as another user

By default, Automatic Login uses the `admin` user. Add the following constants to
your `wp-config.php` file to log in as another user:

    ```
    define( 'AUTOMATIC_LOGIN_USER_LOGIN', 'your-username-here' );
    define( 'AUTOMATIC_LOGIN_USER_PASSWORD', 'your-password-here' );
    ```

**Note:** Automatic Login does not create users. The user must already exist.

#### 10up snapshots

The `snapshots` and `wpsnapshots` user names are automatically recognized for folks
using 10up’s [Snapshots](https://github.com/10up/snapshots) project sharing tool.

#### Bug reports

Do you want to report a bug or suggest a feature for Automatic Login? Best to do
so in the Automatic Login [repository on GitHub](https://github.com/pluginpizza/automatic-login/).

#### You might also like

 * [Admin Bar Site ID](https://wordpress.org/plugins/admin-bar-site-id/)
    Display
   the current site ID in the WordPress admin bar on multisite networks.
 * [Uncomment](https://wordpress.org/plugins/uncomment/)
    Your one-stop shop to 
   completely disable comments and remove all comment functionality.
 * [Lorem Ipsum Autocomplete](https://wordpress.org/plugins/loremipsum/)
    Quickly
   insert lorem ipsum dummy text or placeholder images into WordPress posts and 
   pages via autocompletion.

## Cài đặt

Starting with Automatic Login on your locally hosted WordPress site consists of 
the following steps:

 1. Install and activate the plugin.
 2. Define the [WP_ENVIRONMENT_TYPE](https://developer.wordpress.org/advanced-administration/wordpress/wp-config/#wp-environment-type)
    constant as `local` in your `wp-config.php` file.
 3. Create a user with username `admin` and password `password`.
 4. That’s it—you’ll be logged in automatically!

#### Log in as another user

By default, Automatic Login uses the ‘admin’ user. Add the following constants to
your `wp-config.php` file to log in as another user:

    ```
    define( 'AUTOMATIC_LOGIN_USER_LOGIN', 'your-username-here' );
    define( 'AUTOMATIC_LOGIN_USER_PASSWORD', 'your-password-here' );
    ```

**Note:** Automatic Login does not create users. The user must already exist.

#### 10up Snapshots

The ‘snapshots’ and ‘wpsnapshots’ user names are automatically recognized for folks
using 10up’s [Snapshots](https://github.com/10up/snapshots) project sharing tool.

#### Install Automatic Login from within WordPress

 1. Visit the Plugins page within your dashboard and select ‘Add New’
 2. Search for ‘Automatic Login’
 3. Activate Automatic Login from your Plugins page

#### Install Automatic Login manually

 1. Add the ‘automatic-login’ folder to the /wp-content/plugins/ directory
 2. Activate the Automatic Login plugin through the ‘Plugins’ menu in WordPress

#### Install Automatic Login as a must-use plugin

Automatic Login also works great as a [must-use plugin](https://wordpress.org/documentation/article/must-use-plugins/):

 1. Add the ‘automatic-login.php’ file to the /wp-content/mu-plugins/ directory

Automatic Login contains a `GitHub Plugin URI` plugin header to support updates 
via the [Git Updater](https://git-updater.com/) plugin.

## Đánh giá

![](https://secure.gravatar.com/avatar/c260a7655cacdda924fcc1e4ae9d0e186f18b5ba3d33dc7143d04ffeaa010217?
s=60&d=retro&r=g)

### 󠀁[Funciona correctamente](https://wordpress.org/support/topic/funciona-correctamente-14/)󠁿

 [jesusjvc](https://profiles.wordpress.org/jesusjvc/) 25 Tháng 10, 2024 1 trả lời

De ahora en adelante lo usaré en mis instalaciones de WP en local.

![](https://secure.gravatar.com/avatar/f7bf6b3f031e2f5dde0e5d773cb47ad8007b51753a1b1bdea4f86f5e57efcc3c?
s=60&d=retro&r=g)

### 󠀁[Works as expected! Thanks!](https://wordpress.org/support/topic/works-as-expected-thanks-8/)󠁿

 [Andrew Mead](https://profiles.wordpress.org/andrewmead/) 24 Tháng 7, 2024 1 trả
lời

I started using this on my local setup where I develop my WordPress plugin. It’s
a dream!

![](https://secure.gravatar.com/avatar/cc53d10d0898f2c7a9aa6a5b5f400799cebe3651de88753534f139bafa4ce2f4?
s=60&d=retro&r=g)

### 󠀁[I am rejoicing](https://wordpress.org/support/topic/i-am-rejoicing/)󠁿

 [Benjamin Intal](https://profiles.wordpress.org/bfintal/) 23 Tháng 2, 2024 1 trả
lời

I have a feature request, add in your auto-login credentials the username: admin
and password: admin

 [ Đọc tất cả 3 đánh giá ](https://wordpress.org/support/plugin/automatic-login/reviews/)

## Người đóng góp & Lập trình viên

“Automatic Login” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Plugin Pizza ](https://profiles.wordpress.org/pluginpizza/)
 *   [ Barry Ceelen ](https://profiles.wordpress.org/barryceelen/)

[Dịch “Automatic Login” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/automatic-login)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/automatic-login/), check
out [SVN repository](https://plugins.svn.wordpress.org/automatic-login/), hoặc theo
dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/automatic-login/)
qua [RSS](https://plugins.trac.wordpress.org/log/automatic-login/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 3.0.0

Release Date: January 2, 2026

 * Rename the plugin file from `plugin.php` to `automatic-login.php` to make it 
   easier to use the plugin as a must-use plugin. Existing users will need to reactivate
   the plugin: renaming the plugin file will unfortunately automatically deactivate
   the plugin.

#### 2.0.0

Release Date: July 26, 2024

 * Minor updates.

#### 1.1.0

Release Date: July 25, 2024

 * Add support for the ‘snapshots’ user name in addition to ‘wpsnapshots’.

#### 1.0.0

Release Date: February 11, 2023

 * Initial release.

## Meta

 *  Phiên bản **3.0.0**
 *  Cập nhật lần cuối **5 tháng trước**
 *  Số lượt cài đặt **Ít hơn 10**
 *  Phiên bản WordPress ** 5.5.1 hoặc cao hơn **
 *  Đã kiểm tra lên đến **6.9.4**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/automatic-login/)
 * Thẻ
 * [admin](https://vi.wordpress.org/plugins/tags/admin/)[autologin](https://vi.wordpress.org/plugins/tags/autologin/)
   [local](https://vi.wordpress.org/plugins/tags/local/)[login](https://vi.wordpress.org/plugins/tags/login/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/automatic-login/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/automatic-login/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/automatic-login/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/automatic-login/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/automatic-login/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/automatic-login/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/automatic-login/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/automatic-login/reviews/)

## Những người đóng góp

 *   [ Plugin Pizza ](https://profiles.wordpress.org/pluginpizza/)
 *   [ Barry Ceelen ](https://profiles.wordpress.org/barryceelen/)

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/automatic-login/)