mirror of
https://github.com/pronamic/woocommerce-subscriptions.git
synced 2025-10-15 22:02:56 +00:00
30 lines
936 B
PHP
30 lines
936 B
PHP
<?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.3
|
|
*/
|
|
|
|
if ( ! function_exists( 'action_scheduler_register_1_dot_5_dot_3' ) ) {
|
|
|
|
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_3', 0, 0 );
|
|
|
|
function action_scheduler_register_1_dot_5_dot_3() {
|
|
$versions = ActionScheduler_Versions::instance();
|
|
$versions->register( '1.5.3', 'action_scheduler_initialize_1_dot_5_dot_3' );
|
|
}
|
|
|
|
function action_scheduler_initialize_1_dot_5_dot_3() {
|
|
require_once( 'classes/ActionScheduler.php' );
|
|
ActionScheduler::init( __FILE__ );
|
|
}
|
|
|
|
} |