briteweb/wp-cron-auth

Enable CRON behind basic auth.

Installs: 1 320

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:wordpress-plugin

0.1.1 2021-03-24 18:07 UTC

This package is auto-updated.

Last update: 2024-04-25 01:39:03 UTC


README

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=