0.2.1 • Published 10 years ago

wp-cron-node v0.2.1

Weekly downloads
9
License
MIT
Repository
-
Last release
10 years ago

WP Cron Node

A simple Node command to run WordPress cron via PHP CLI. Running this command will execute WordPress cron events that are due for execution. If you want to execute cron events regardless of schedule, use WP-CLI cron event run.

Installation

  1. Make sure you have Node.js and npm installed.
  2. Install WP-CLI.
  3. Install the wp-cron-node npm package with the following shell command:

    npm install -g wp-cron-node
  4. Disable WordPress cron. By adding the following to your wp-config.php file:

    define( 'DISABLE_WP_CRON', true );

Usage

You can run the command without any arguments from within the root of a WordPress installation with the following shell command:

wp-cron-node

You can also specify a relative or absolute path to a WordPress installation:

wp-cron-node ../wordpress

If you are running WordPress multi-site, you might want to change the site context by passing in a url:

wp-cron-node . http://example.com/site2

License

This project is licensed under the MIT license.

0.2.1

10 years ago

0.2.0

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago