/** * Allows the Auto-EOT Sytem to be processed through a server-side Cron Job. * * @package s2Member\Cron_Jobs * @since 3.5 * * @attaches-to ``add_action("init");`` * * @return null Or exits script execution after task completed. */ public static function auto_eot_system_via_cron() { do_action("ws_plugin__s2member_before_auto_eot_system_via_cron", get_defined_vars()); if (!empty($_GET["s2member_auto_eot_system_via_cron"])) { if ($GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["auto_eot_system_enabled"]) { c_ws_plugin__s2member_auto_eots::auto_eot_system(); // Process. do_action("ws_plugin__s2member_during_auto_eot_system_via_cron", get_defined_vars()); } exit; } do_action("ws_plugin__s2member_after_auto_eot_system_via_cron", get_defined_vars()); }
/** * Allows the Auto-EOT Sytem to be processed through a server-side Cron Job. * * @package s2Member\Cron_Jobs * @since 3.5 * * @attaches-to ``add_action('init');`` */ public static function auto_eot_system_via_cron() { do_action('ws_plugin__s2member_before_auto_eot_system_via_cron', get_defined_vars()); if (!empty($_GET['s2member_auto_eot_system_via_cron'])) { if ($GLOBALS['WS_PLUGIN__']['s2member']['o']['auto_eot_system_enabled']) { c_ws_plugin__s2member_auto_eots::auto_eot_system(); // Process. do_action('ws_plugin__s2member_during_auto_eot_system_via_cron', get_defined_vars()); } exit; // Clean exit. } do_action('ws_plugin__s2member_after_auto_eot_system_via_cron', get_defined_vars()); }