跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
  • 支持
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Automatic Login

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Automatic Login

作者:Plugin Pizza
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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 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 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.

You might also like

  • Admin Bar Site ID
    Display the current site ID in the WordPress admin bar on multisite networks.
  • Uncomment
    Your one-stop shop to completely disable comments and remove all comment functionality.
  • Lorem Ipsum Autocomplete
    Quickly insert lorem ipsum dummy text or placeholder images into WordPress posts and pages via autocompletion.

安装

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 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 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:

  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 plugin.

评价

Funciona correctamente

jesusjvc 2024 年 10 月 25 日 1 回复
De ahora en adelante lo usaré en mis instalaciones de WP en local.

Works as expected! Thanks!

Andrew Mead 2024 年 7 月 24 日 1 回复
I started using this on my local setup where I develop my WordPress plugin. It’s a dream!

I am rejoicing

Benjamin Intal 2024 年 2 月 23 日 1 回复
I have a feature request, add in your auto-login credentials the username: admin and password: admin
阅读所有3条评价

贡献者及开发者

「Automatic Login」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Plugin Pizza
  • Barry Ceelen

帮助将「Automatic Login」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

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.

额外信息

  • 版本 3.0.0
  • 最后更新:1 月前
  • 活跃安装数量 不到10
  • WordPress 版本 5.5.1 或更高版本
  • 已测试的最高版本为 6.9.1
  • 语言
    English (US)
  • 标签
    adminautologinlocallogin
  • 高级视图

评级

5 星(最高 5 星)。
  • 3 条 5 星评价 5 星 3
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

添加我的评价

查看全部评论

贡献者

  • Plugin Pizza
  • Barry Ceelen

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗