Title: Cronjob Scheduler
Author: chrispage1
Published: <strong>May 16, 2014</strong>
Last modified: May 26, 2020

---

Search plugins

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://s.w.org/plugins/geopattern-icon/cronjob-scheduler.svg)

# Cronjob Scheduler

 By [chrispage1](https://profiles.wordpress.org/chrispage1/)

[Download](https://downloads.wordpress.org/plugin/cronjob-scheduler.1.40.1.zip)

 * [Details](https://wordpress.org/plugins/cronjob-scheduler/#description)
 * [Reviews](https://wordpress.org/plugins/cronjob-scheduler/#reviews)
 *  [Installation](https://wordpress.org/plugins/cronjob-scheduler/#installation)
 * [Development](https://wordpress.org/plugins/cronjob-scheduler/#developers)

 [Support](https://wordpress.org/support/plugin/cronjob-scheduler/)

## Description

#### Cronjob Scheduler

Cronjob Scheduler allows you to create custom WordPress tasks that are automatically
triggered on a schedule you define.
 Cronjob Scheduler does not overwrite WordPress’s
existing scheduling functionality, which it and plugins use for a number of internal
tasks. Instead, it simply replaces the standard WordPress mechanism which triggers
them with a more reliable one from your operating system. In addition, it helps 
improve your site speed by making the server handle recurring tasks, rather than
unsuspecting visitors…

The motivation behind building this plugin was out of frustration with other similar
plugins that claim to do the same thing.

Cronjob Scheduler allows you to run frequent tasks reliably and timely without anyone
having to visit your site at all. All you need is at least 1 action and a Unix Crontab
schedule!

#### About

This plugin was designed and built by Motocom. It is designed to make easy work 
of creating and managing custom cron jobs. If this plugin has been helpful for you,
then please donate to keep our WordPress plugin projects running!

## Screenshots

[⌊Cronjob Scheduler Interface⌉⌊Cronjob Scheduler Interface⌉[

Cronjob Scheduler Interface

[⌊Creating new schedules is easy⌉⌊Creating new schedules is easy⌉[

Creating new schedules is easy

[⌊The process of creating a new scheduled task⌉⌊The process of creating a new scheduled
task⌉[

The process of creating a new scheduled task

## Installation

 1. Upload `cronjob-scheduler` folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the `Plugins` menu in WordPress
 3. You will now be able to manage your Cronjob schedule under `Settings > Cronjob 
    Scheduler`
 4. Once on this page, follow the plugins instructions to ensure everything is setup
    and ready to go
 5. Instructions, and a template for creating new actions can be found in the plugin
    admin.

#### Running your cron tasks

Most shared providers offer a crontab manager, or you can speak to your shared hosting
provider about setting up our cron job. If you manage the server, you can setup 
your cron using the crontab service. Make sure that wget is installed befor doing
this.

#### Creating Custom Action Example

    ```
    function my_cronjob_action () {
        // code to execute on cron run
    } add_action('my_cronjob_action', 'my_cronjob_action');
    ```

## FAQ

### Can I create my own custom schedules?

That’s the whole idea of the plugin, you setup your schedules and the tasks you 
want to run and the plugin will handle the rest!

### How do I create a task to run?

Just create a new function in your theme files (or somewhere else you will remember)
and create an action with the same name.

### Can I run an event at any time?

Sure, just go to the Cronjob Scheduler interface and hit the `Run` button against
the task.

## Reviews

![](https://secure.gravatar.com/avatar/5af1a367e702d21390f1bc7e43613bc810d09d5580b65da3c716c39133206f1d?
s=60&d=retro&r=g)

### 󠀁[Great plugin and great support](https://wordpress.org/support/topic/great-plugin-and-great-support-499/)󠁿

 [xjamesb](https://profiles.wordpress.org/xjamesb/) May 20, 2020 1 reply

This plugin simply replaces the adhoc triggering of your scheduled tasks with a 
trigger delivered by your host operating system. This increases reliability. There
are no downsides. It also makes it easy to create your own cron job. I had some 
questions about how it worked and the developer gave me great support.

![](https://secure.gravatar.com/avatar/a66589387202c4ad825a4c8ee7236f4f48ccaf45236377640e0d7f31150120d4?
s=60&d=retro&r=g)

### 󠀁[Working well and fast support from the developer](https://wordpress.org/support/topic/working-well-and-fast-support-from-the-developer/)󠁿

 [jdoe87165](https://profiles.wordpress.org/jdoe87165/) June 20, 2019 1 reply

This plugin was recommended for another plugin, Projectopia. Chris is very fast 
to respond to what looks like most requests when trouble arises. Thanks again Chris!

![](https://secure.gravatar.com/avatar/50112ec49666839f9cfb04e2a8cfb43adec7dc37e135be68cad3e71bd7aec0e0?
s=60&d=retro&r=g)

### 󠀁[Incomplete, but works](https://wordpress.org/support/topic/incomplete-but-works/)󠁿

 [randymoller](https://profiles.wordpress.org/randymoller/) August 4, 2018 1 reply

This plugin would be the perfect cronjob scheduler if jobs could be scheduled at
a given time, instead of only allowing intervals. The UI is stellar, and functions
as advertised, however, without the ability to control the exact time of execution,
it is unusable for most applications.

![](https://secure.gravatar.com/avatar/935a0dec9e848fe631fb79eec701213b37505de71d4561dd4e4c2b0b8483bf06?
s=60&d=retro&r=g)

### 󠀁[Excellent and Useful Plugin for Developers](https://wordpress.org/support/topic/excellent-and-useful-plugin-for-developers/)󠁿

 [grcplaybook](https://profiles.wordpress.org/grcplaybook/) June 5, 2017

This is a fantastic plugin. I use it in conjunction with the “SLM Woo Addon” and“
Software License Manager” plugins to send emails to users whose license is about
to expire. I have no connection to Chris Page or Motocom and therefore have no hesitation
in recommending you make a donation for this plugin (see link at bottom right of
Cronjob Scheduler). If you think this plugin is not working I suggest you do the
following: 1. Install the “Code Snippets” plugin by Shea Bunge and add the following
snippet: // Test cronjob created by Chris Page add_action(‘cronjob_test’, function(){
file_put_contents(WP_CONTENT_DIR . ‘/.test.txt’, “\nHit at ” . date(‘Ymd-His’), 
FILE_APPEND); }); 2. In the Cronjob Scheduler, which is in Settings, create an Action
and name it “cronjob_test” with a run time of once every minute. 3. Create a file,.
test.txt (including the dot at the start of the filename), in your wp-content folder.
4. Start the snippet and check if information is being written to .test.txt: e.g.
Hit at 20170601-110444 5. If the file is empty, note the information in “Plugin 
Details” (bottom right of Cronjob Scheduler). In particular that you need a cronjob
that runs every minute. If you don’t know how to set up a cronjob, contact your 
ISP. 6. Remember to stop the Code Snippets cronjob if “Hit at …” is being written
to the .test.txt file.

![](https://secure.gravatar.com/avatar/55482c1a86ed369c95c7067b27864eb40465dead3dcf0c978caaa976178be9e0?
s=60&d=retro&r=g)

### 󠀁[Not working](https://wordpress.org/support/topic/not-working-1311/)󠁿

 [maximote](https://profiles.wordpress.org/maximote/) October 27, 2016 1 reply

It does not work on the latest version of wp.

![](https://secure.gravatar.com/avatar/78fd6d216eecbf886225f72696a7d575e0ba8cf4eb364f0daa00087ea8fd5fd5?
s=60&d=retro&r=g)

### 󠀁[Perfect plugin](https://wordpress.org/support/topic/perfect-plugin-284/)󠁿

 [Hesham Zebida](https://profiles.wordpress.org/hishaman/) September 3, 2016

I was in need of this while debugging some the WordPress cron. Thanks for making
it easier.

 [ Read all 14 reviews ](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/)

## Contributors & Developers

“Cronjob Scheduler” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ chrispage1 ](https://profiles.wordpress.org/chrispage1/)

[Translate “Cronjob Scheduler” into your language.](https://translate.wordpress.org/projects/wp-plugins/cronjob-scheduler)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/cronjob-scheduler/),
check out the [SVN repository](https://plugins.svn.wordpress.org/cronjob-scheduler/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/cronjob-scheduler/)
by [RSS](https://plugins.trac.wordpress.org/log/cronjob-scheduler/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.40.1

Removed session_start() fixing site health bug.

#### 1.40

Project refactoring, added clause where action may show as not existing.

#### 1.30

Addressed timezone bugs and updated latest version plugin is compatible with

#### 1.21

Fixed creation bug caused by non-strict PHP checking. Credit Andreas Mak for this
fix

#### 1.20

Fixed lack of support for PHP 5.2 with **DIR** magic constants being replaced for
dirname(**FILE**)

#### 1.19

Fixed views not loading bug (introdued in 1.18 refactoring)

#### 1.18

Basic refactoring and tidying. Updated uasort anonymous function as it was breaking
in PHP 5.2.17

#### 1.17

Fixed activation bug where accessing the first element in an array is not available
in older versions of PHP

#### 1.16

Further enhanced supporting of old versions by preventing duplicates from being 
created

#### 1.15

Added functionality to support old versions of Cronjob Scheduler – old cron setups
will still show

#### 1.14

Fixed where cron job was no longer displaying old versions of cron setup

#### 1.13

Fixed example cronjob file functionality – it was referencing an invalid path since
plugin updates

#### 1.12

Major refactoring of code along with issues addressed by users. Active development
resumed

#### 1.0.8

Minor bug fix to stop tasks that do not recur from being a problem

#### 1.0.7

Changed the conditions under which post events are handled to prevent interference
with any other elements of the WordPress admin.

#### 1.0.6

Added facility to edit cronjobs.php file which allows you to create and manage cronjobs

actions all from within the WordPress admin.

#### 1.0.5

Created function to get crontab structure and modified it to a more reliable wget
method

#### 1.0.4

Updated plugin folder structure

#### 1.0.1 – 1.0.3

Minor changes to readme files & author URL

#### 1.0

Plugin creation, extensive testing and deployment to a number of our live environments.

## Meta

 *  Version **1.40.1**
 *  Last updated **6 years ago**
 *  Active installations **900+**
 *  WordPress version ** 3.5.1 or higher **
 *  Tested up to **5.4.19**
 * Tags
 * [automation](https://wordpress.org/plugins/tags/automation/)[cron](https://wordpress.org/plugins/tags/cron/)
   [cronjob](https://wordpress.org/plugins/tags/cronjob/)[scheduler](https://wordpress.org/plugins/tags/scheduler/)
   [task](https://wordpress.org/plugins/tags/task/)
 *  [Advanced View](https://wordpress.org/plugins/cronjob-scheduler/advanced/)

## Ratings

 4.4 out of 5 stars.

 *  [  10 5-star reviews     ](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/?filter=5)
 *  [  2 4-star reviews     ](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cronjob-scheduler/reviews/)

## Contributors

 *   [ chrispage1 ](https://profiles.wordpress.org/chrispage1/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/cronjob-scheduler/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=6FVZN7BBHGR2S&lc=GB&item_name=WordPress%20Plugins%20%2d%20Cronjob%20Scheduler&no_note=0&cn=Add%20special%20instructions%20to%20the%20seller%3a&no_shipping=1&currency_code=GBP&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted)