PluginProbe
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions / 110912
s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions v110912
260917 260913 260909 260829 260814 260805 110710 110731 110812 110815 110912 110913 110915 110926 110927 111002 111003 111011 111017 111029 111105 111206 111216 111220 120213 All 189 releases
s2member / includes / classes / cron-jobs.inc.php

cron-jobs.inc.php in s2Member – Excellent for All Kinds of Memberships, Content Restriction Paywalls & Member Access Subscriptions 110912, at includes/classes/cron-jobs.inc.php

64 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Cron routines handled by s2Member.
4 *
5 * Copyright: © 2009-2011
6 * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
7 * ( coded in the USA )
8 *
9 * Released under the terms of the GNU General Public License.
10 * You should have received a copy of the GNU General Public License,
11 * along with this software. In the main directory, see: /licensing/
12 * If not, see: {@link http://www.gnu.org/licenses/}.
13 *
14 * @package s2Member\Cron_Jobs
15 * @since 3.5
16 */
17 if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
18 exit ("Do not access this file directly.");
19 /**/
20 if (!class_exists ("c_ws_plugin__s2member_cron_jobs"))
21 {
22 /**
23 * Cron routines handled by s2Member.
24 *
25 * @package s2Member\Cron_Jobs
26 * @since 3.5
27 */
28 class c_ws_plugin__s2member_cron_jobs
29 {
30 /**
31 * Extends WP-Cron schedules to support 10 minute intervals.
32 *
33 * @package s2Member\Cron_Jobs
34 * @since 3.5
35 *
36 * @attaches-to: ``add_filter("cron_schedules");``
37 *
38 * @param array $schedules Expects an array of WP_Cron schedules passed in by the Filter.
39 * @return inner Return-value of inner routine.
40 */
41 public static function extend_cron_schedules ($schedules = array ()) /* Call inner function? */
42 {
43 return c_ws_plugin__s2member_cron_jobs_in::extend_cron_schedules ($schedules);
44 }
45 /**
46 * Allows the Auto-EOT Sytem to be processed through a server-side Cron Job.
47 *
48 * @package s2Member\Cron_Jobs
49 * @since 3.5
50 *
51 * @attaches-to: ``add_action("init");``
52 *
53 * @return null|inner Return-value of inner routine.
54 */
55 public static function auto_eot_system_via_cron ()
56 {
57 if (!empty ($_GET["s2member_auto_eot_system_via_cron"])) /* Call inner routine? */
58 {
59 return c_ws_plugin__s2member_cron_jobs_in::auto_eot_system_via_cron ();
60 }
61 }
62 }
63 }
64 ?>