forked from crodas/action-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction-scheduler.php
30 lines (24 loc) · 936 Bytes
/
action-scheduler.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/*
Plugin Name: Action Scheduler
Plugin URI: https://github.com/prospress/action-scheduler
Description: A robust action scheduler for WordPress
Author: Prospress
Author URI: http://prospress.com/
Version: 1.5.2
*/
if ( ! function_exists( 'action_scheduler_register_1_dot_5_dot_2' ) ) {
if ( ! class_exists( 'ActionScheduler_Versions' ) ) {
require_once( 'classes/ActionScheduler_Versions.php' );
add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 );
}
add_action( 'plugins_loaded', 'action_scheduler_register_1_dot_5_dot_2', 0, 0 );
function action_scheduler_register_1_dot_5_dot_2() {
$versions = ActionScheduler_Versions::instance();
$versions->register( '1.5.2', 'action_scheduler_initialize_1_dot_5_dot_2' );
}
function action_scheduler_initialize_1_dot_5_dot_2() {
require_once( 'classes/ActionScheduler.php' );
ActionScheduler::init( __FILE__ );
}
}