mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-17 14:52:56 +00:00
2.3.2
This commit is contained in:

committed by
Remco Tolsma

parent
5fb62b0e6a
commit
1039aec2d9
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user