WP Manifestindependent plugin directory
manifest / security / wp-cron-auth

WP-CRON Basic Auth

Enable CRON behind basic auth.

★ 1stars
1.4kcomposer installs

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/briteweb/wp-cron-auth/archive/refs/heads/main.zip

On Packagist as briteweb/wp-cron-auth:

composer require briteweb/wp-cron-auth
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Constants

The plugin requires the following constants to be defined

  • WP_CRON_HTTP_BASIC_USERNAME
  • WP_CRON_HTTP_BASIC_PASSWORD

Bedrock

If you're using bedrock, add this block to config/application.php to define the constants.

/**
 * WP CRON basic authentication
 */
Config::define('WP_CRON_HTTP_BASIC_USERNAME', env('WP_CRON_HTTP_BASIC_USERNAME'));
Config::define('WP_CRON_HTTP_BASIC_PASSWORD', env('WP_CRON_HTTP_BASIC_PASSWORD'));

And the following lines to .env and .env.example

WP_CRON_HTTP_BASIC_USERNAME=
WP_CRON_HTTP_BASIC_PASSWORD=