classes
7 years ago
deprecated
7 years ago
lib
7 years ago
action-scheduler.php
7 years ago
functions.php
7 years ago
license.txt
7 years ago
action-scheduler.php
48 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Plugin Name: Action Scheduler |
| 4 | * Plugin URI: https://actionscheduler.org |
| 5 | * Description: A robust scheduling library for use in WordPress plugins. |
| 6 | * Author: Prospress |
| 7 | * Author URI: https://prospress.com/ |
| 8 | * Version: 2.2.5 |
| 9 | * License: GPLv3 |
| 10 | * |
| 11 | * Copyright 2019 Prospress, Inc. (email : freedoms@prospress.com) |
| 12 | * |
| 13 | * This program is free software: you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by |
| 15 | * the Free Software Foundation, either version 3 of the License, or |
| 16 | * (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU General Public License |
| 24 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 25 | * |
| 26 | */ |
| 27 | |
| 28 | if ( ! function_exists( 'action_scheduler_register_2_dot_2_dot_5' ) ) { |
| 29 | |
| 30 | if ( ! class_exists( 'ActionScheduler_Versions' ) ) { |
| 31 | require_once( 'classes/ActionScheduler_Versions.php' ); |
| 32 | add_action( 'plugins_loaded', array( 'ActionScheduler_Versions', 'initialize_latest_version' ), 1, 0 ); |
| 33 | } |
| 34 | |
| 35 | add_action( 'plugins_loaded', 'action_scheduler_register_2_dot_2_dot_5', 0, 0 ); |
| 36 | |
| 37 | function action_scheduler_register_2_dot_2_dot_5() { |
| 38 | $versions = ActionScheduler_Versions::instance(); |
| 39 | $versions->register( '2.2.5', 'action_scheduler_initialize_2_dot_2_dot_5' ); |
| 40 | } |
| 41 | |
| 42 | function action_scheduler_initialize_2_dot_2_dot_5() { |
| 43 | require_once( 'classes/ActionScheduler.php' ); |
| 44 | ActionScheduler::init( __FILE__ ); |
| 45 | } |
| 46 | |
| 47 | } |
| 48 |