This commit is contained in:
Prospress Inc
2018-07-19 12:14:08 +02:00
committed by Remco Tolsma
parent 5fb62b0e6a
commit 1039aec2d9
126 changed files with 13546 additions and 4169 deletions

View File

@@ -78,7 +78,6 @@ abstract class ActionScheduler {
*
* @static
* @param string $plugin_file
* @return void
*/
public static function init( $plugin_file ) {
self::$plugin_file = $plugin_file;
@@ -97,6 +96,10 @@ abstract class ActionScheduler {
add_action( 'init', array( $admin_view, 'init' ), 0, 0 ); // run before $store::init()
require_once( self::plugin_path('functions.php') );
if ( defined( 'WP_CLI' ) && WP_CLI ) {
WP_CLI::add_command( 'action-scheduler', 'ActionScheduler_WPCLI_Scheduler_command' );
}
}
@@ -117,4 +120,3 @@ abstract class ActionScheduler {
return as_get_datetime_object( $when, $timezone );
}
}