Title: WP Cron HTTP Auth
Author: Jeff Starr
Published: <strong>2018 年 6 月 6 日</strong>
Last modified: 2026 年 4 月 19 日

---

搜索插件

![](https://ps.w.org/wp-cron-http-auth/assets/icon-256x256.png?rev=1927704)

# WP Cron HTTP Auth

 作者：[Jeff Starr](https://profiles.wordpress.org/specialk/)

[下载](https://downloads.wordpress.org/plugin/wp-cron-http-auth.3.5.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-cron-http-auth/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-cron-http-auth/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-cron-http-auth/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-cron-http-auth/#developers)

 [支持](https://wordpress.org/support/plugin/wp-cron-http-auth/)

## 描述

This plugin enables WP Cron on sites using HTTP Authentication.

How to use: Visit the plugin settings, enter your HTTP Auth credentials, save changes,
done.

Everything happens silently and automatically in the background.

> 👉 Supports defined constants via wp-config.php
>  👉 Super lightweight, fast, and
> effective 👉 Plugin uses only 30KB of code

**Privacy**

This plugin does not collect or store any user data. It does not set any cookies,
and it does not connect to any third-party locations. Thus, this plugin does not
affect user privacy in any way.

WP Cron HTTP Auth is developed and maintained by [Jeff Starr](https://x.com/perishable),
15-year [WordPress developer](https://plugin-planet.com/) and [book author](https://books.perishablepress.com/).

**Support development**

I develop and maintain this free plugin with love for the WordPress community. To
show support, you can [make a donation](https://monzillamedia.com/donate.html) or
purchase one of my books:

 * [The Tao of WordPress](https://wp-tao.com/)
 * [Digging into WordPress](https://digwp.com/)
 * [.htaccess made easy](https://htaccessbook.com/)
 * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/)
 * [Wizard’s SQL Recipes for WordPress](https://books.perishablepress.com/downloads/wizards-collection-sql-recipes-wordpress/)

And/or purchase one of my premium WordPress plugins:

 * [BBQ Pro](https://plugin-planet.com/bbq-pro/) – Blazing fast WordPress firewall
 * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) – Automatically block
   bad bots
 * [Banhammer Pro](https://plugin-planet.com/banhammer-pro/) – Monitor traffic and
   ban the bad guys
 * [GA Google Analytics Pro](https://plugin-planet.com/ga-google-analytics-pro/)–
   Connect WordPress to Google Analytics
 * [Head Meta Pro](https://plugin-planet.com/head-meta-pro/) – Ultimate Meta Tags
   for WordPress
 * [REST Pro Tools](https://plugin-planet.com/rest-pro-tools/) – Awesome tools for
   managing the WP REST API
 * [Simple Ajax Chat Pro](https://plugin-planet.com/simple-ajax-chat-pro/) – Unlimited
   chat rooms
 * [USP Pro](https://plugin-planet.com/usp-pro/) – Unlimited front-end forms

Links, tweets and likes also appreciated. Thank you! 🙂

## 屏幕截图

 * [[
 * Plugin settings

## 安装

**Installing the Plugin**

 1. Upload the plugin to your blog and activate
 2. Visit the plugin settings to configure options

[More info on installing WP plugins](https://wordpress.org/documentation/article/manage-plugins/#installing-plugins-1)

**Using Constants**

Thanks to feedback from [@nowakpiotrek](https://wordpress.org/support/topic/feature-read-configuration-from-config-variables/),
this plugin supports username and password constants defined in WordPress `wp-config.
php`. So instead of entering the username and password via the plugin settings, 
you can add the following definitions to the `wp-config.php` file, just before the
line that says, “That’s all, stop editing!” There you can add the following code:

    ```
    define('WP_CRON_HTTP_AUTH_USERNAME', 'your-http-auth-username');
    define('WP_CRON_HTTP_AUTH_PASSWORD', 'your-http-auth-password');
    ```

Change `your-http-auth-username` and `your-http-auth-password` to match your username
and password, respectively. After saving changes, you can verify the new constants
are working by visiting the plugin settings page. If the constants are working, 
the username and password options will be greyed out, with a message that says, “
Username/Password set in wp-config.php”.

**Uninstalling**

This plugin cleans up after itself. All plugin settings will be removed from the
WordPress database when the plugin is deleted via the WP Plugins screen.

**Restore Default Options**

To restore default options, uninstall the plugin via the WP Plugins screen, and 
then reinstall.

**Like the plugin?**

If you like WP Cron HTTP Auth, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?rate=5#new-post).
It helps to keep development and support going strong. Thank you!

## 常见问题

### Does this work for WP Multisite?

Yes, this plugin works great on Multisite.

### How to test if the plugin is working?

To test if this plugin is working, follow these steps:

 1. Install and activate the excellent plugin, [WP Crontrol](https://wordpress.org/plugins/wp-crontrol/)
 2. Visit the “Cron Events” screen in the WP Admin Area (under Tools menu)
 3. Look for a warning message at the top of the screen that says:

“There was a problem spawning a call to the WP-Cron system on your site. This means
WP-Cron events on your site may not work. The problem was: Unexpected HTTP response
code: 401”

If the warning message is displayed, then HTTP Auth is blocking WP Cron. Otherwise,
if no warning message is displayed, WP Cron is working normally.

Note: after testing it is fine to delete the WP Crontrol plugin if no longer needed.

### Got a question?

Send any questions or feedback via my [contact form](https://plugin-planet.com/support/#contact)

## 评价

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

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-10988/)󠁿

 [njwp](https://profiles.wordpress.org/njwp/) 2026 年 5 月 17 日

perfect. Thank you for this plugin. Has just one job to do with no bloat

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

### 󠀁[I couldn’t live without this plugin](https://wordpress.org/support/topic/i-couldnt-live-without-this-plugin-3/)󠁿

 [Jean Werk](https://profiles.wordpress.org/brightbluegum/) 2025 年 3 月 15 日

Simple and efficient. I’ve installed it on all my Dev sites.

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

### 󠀁[Does it work with NGINX?](https://wordpress.org/support/topic/does-it-work-with-nginx-3/)󠁿

 [digitalgonzo](https://profiles.wordpress.org/bzosel/) 2023 年 12 月 28 日 1 回复

Hi, Thanks a lot for the plugin!Does it also work with NGINX?For some reason it 
does not work on my server…Many thanks!

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

### 󠀁[it works!](https://wordpress.org/support/topic/it-works-2358/)󠁿

 [Anonymous User 20791862](https://profiles.wordpress.org/anonymized-20791862/) 
2023 年 1 月 13 日

it works!

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

### 󠀁[Works perfect!](https://wordpress.org/support/topic/works-perfect-994/)󠁿

 [worldtravlr](https://profiles.wordpress.org/worldtravlr/) 2022 年 8 月 16 日

Thanks for making this plugin! Works as described!

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

### 󠀁[Best to protect!](https://wordpress.org/support/topic/best-to-protect/)󠁿

 [tinaponting](https://profiles.wordpress.org/ponting/) 2022 年 4 月 22 日

A great smal plugin that really makes a diffrence in protection

 [ 阅读所有16条评价 ](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/)

## 贡献者及开发者

「WP Cron HTTP Auth」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Jeff Starr ](https://profiles.wordpress.org/specialk/)

「WP Cron HTTP Auth」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-cron-http-auth/contributors)
为本插件所做的贡献。

[帮助将「WP Cron HTTP Auth」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-cron-http-auth)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-cron-http-auth/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/wp-cron-http-auth/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-cron-http-auth/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-cron-http-auth/)。

## 更新日志

If you like WP Cron HTTP Auth, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?rate=5#new-post).
It helps to keep development and support going strong. Thank you!

**3.5 (2026/04/19)**

 * Improves readme.txt documentation
 * Tests on PHP 8.4 and 8.5
 * Tests on WordPress 7.0

Full changelog @ [https://plugin-planet.com/wp/changelog/wp-cron-http-auth.txt](https://plugin-planet.com/wp/changelog/wp-cron-http-auth.txt)

## 额外信息

 *  版本 **3.5**
 *  最后更新：**2 月前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 4.7 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 5.6.20 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-cron-http-auth/) 、 [German](https://de.wordpress.org/plugins/wp-cron-http-auth/)
   和 [Italian](https://it.wordpress.org/plugins/wp-cron-http-auth/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-cron-http-auth)
 * 标签
 * [auth](https://cn.wordpress.org/plugins/tags/auth/)[cron](https://cn.wordpress.org/plugins/tags/cron/)
   [http](https://cn.wordpress.org/plugins/tags/http/)[http auth](https://cn.wordpress.org/plugins/tags/http-auth/)
   [wp cron](https://cn.wordpress.org/plugins/tags/wp-cron/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-cron-http-auth/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  16 条 5 星评价     ](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-cron-http-auth/reviews/)

## 贡献者

 *   [ Jeff Starr ](https://profiles.wordpress.org/specialk/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/wp-cron-http-auth/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://monzillamedia.com/donate.html)