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, and done.

Everything happens silently and automatically in the background.

New! Supports defined constants via wp-config.php (learn more)


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, 15-year WordPress developer and book author.

Support development

I develop and maintain this free plugin with love for the WordPress community. To show support, you can make a donation or purchase one of my books:

And/or purchase one of my premium WordPress plugins:

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

Using Constants

Thanks to feedback from @nowakpiotrek, 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».


This plugin cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the 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. It helps to keep development and support going strong. Thank you!

Preguntas frecuentes

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

  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


18 de noviembre de 2021
WPCRON won't run out-of-box with HTTPAUTH active (popup credentials) - this tool allows you to enter your HTTPAUTH credentials and lets WPCRON run as normal. Perfect solve for my problem, thank you!
Leer todas las 13 reseñas

Colaboradores y desarrolladores

«WP Cron HTTP Auth» es un software de código abierto. Las siguientes personas han colaborado con este plugin.


«WP Cron HTTP Auth» ha sido traducido a 1 idioma local. Gracias a los traductores por sus contribuciones.

Traduce «WP Cron HTTP Auth» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

If you like WP Cron HTTP Auth, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!

2.7 (2023/07/15)

  • Improves localization function
  • Improves plugin readme/documentation
  • Updates default translation template
  • Tests on WordPress 6.3 (beta)

2.6 (2023/03/03)

  • Improves logic when calling get_current_screen()
  • Generates new translation template
  • Tests on WordPress 6.1 + 6.2 (beta)
  • Tests on PHP 8.1 and 8.2

2.5 (2022/10/01)

  • Adds «Show Support» link to plugin settings
  • Adds custom footer text to plugin settings
  • Improves plugin documentation
  • Updates translation template
  • Tests on WordPress 6.1

2.4 (2022/05/17)

  • Generates new default translation template
  • Tests on WordPress 6.0

2.3 (2022/01/17)

  • Adds support for config constants
  • Improves loading of translations
  • Updates some links to external resources
  • Changes minimum required WP version to 4.6
  • Tests on WordPress 5.9

2.2 (2021/07/17)

  • Tests on WordPress 5.8

2.1 (2021/02/10)

  • Tests on WordPress 5.7

2.0 (2020/11/15)

  • Tests on PHP 7.4 and 8.0
  • Tests on WordPress 5.6

1.9 (2020/08/09)

  • Refines readme/documentation
  • Tests on WordPress 5.5

1.8 (2020/03/19)

  • Tests on WordPress 5.4

1.7 (2019/11/07)

  • Tests on WordPress 5.3

1.6 (2019/09/02)

  • Updates some links to https
  • Generates new default translation template
  • Tests on WordPress 5.3 (alpha)

1.5 (2019/05/01)

  • Bumps minimum PHP version to 5.6.20
  • Updates default translation template
  • Tests on WordPress 5.2

1.4 (2019/03/10)

  • Changes Password input to type «password»
  • Adds check for admin user for settings shortcut link
  • Tweaks plugin settings screen UI
  • Generates new default translation template
  • Tests on WordPress 5.1 and 5.2 (alpha)

1.3 (2019/02/20)

  • Just a version bump for compat with WP 5.1
  • Full update coming soon 🙂

1.2 (2018/11/16)

  • Adds homepage link to Plugins screen
  • Updates default translation template
  • Tests on WordPress 5.0 (beta)

1.1 (2018/08/20)

  • Adds screenshot and icons for WP Plugin Directory
  • Adds «rate plugin» links on Plugins and settings page
  • Adds rel="noopener noreferrer" to all blank-target links
  • Updates GDPR blurb and donate link
  • Generates default translation template
  • Further tests on WP 4.9 + 5.0 (alpha)

1.0 (2018/05/18)

  • Initial release