Install
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.zipOn Packagist as briteweb/wp-cron-auth:
composer require briteweb/wp-cron-authNo 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_USERNAMEWP_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=