A basic Clockwork integration for WordPress.
DO NOT, UNDER ANY CIRCUMSTANCES, RUN THIS PLUGIN ON ANYTHING BUT A DEVELOPMENT MACHINE - THE METADATA IT EXPOSES CAN BE USED TO EASILY TAKE OVER YOUR SITE.
PHP 5.5 or greater and Composer.
Optionally install one of the Clockwork browser extensions (Chrome, Firefox).
For now either require dev-master via Composer using a vcs repository or clone this repo into your plugins directory and manually run composer install
.
Once the plugin has been activated, there are two primary options for usage:
If you have installed the browser extension, open developer tools and browse to the Clockwork tab.
Otherwise, open a new browser tab and navigate to the __clockwork/app
endpoint (e.g. https://mysite.com/__clockwork/app).
There are three options for configuring Clockwork:
cfw_config_args
filter - This filter allows you to modify the args array before the config object is constructed.
cfw_config_init
action - This action provides access to the config object after it has been constructed. You can modify all available options using their respective setter methods.
The Pimple extend
method - The core of this plugin is an instance of Pimple which can be retrieved using the _cfw_instance
function. The config definition is stored using the 'config'
identifier.