c_ws_plugin__s2member_auto_eots
public class c_ws_plugin__s2member_auto_eots
3.5
( 3 Methods ) Method Summary | |
---|---|
public static bool | Adds a scheduled task for s2Member's Auto-EOT System. |
public static null | auto_eot_system(int $per_process) Processed by WP_Cron; this handles Auto-EOTs (EOT = End Of Term). |
public static bool | Deletes all scheduled tasks for s2Member's Auto-EOT System. |
public static bool add_auto_eot_system()
Adds a scheduled task for s2Member's Auto-EOT System.
3.5
bool - True if able to add Auto-EOT System schedule, else false.
public static null auto_eot_system(int $per_process)
Processed by WP_Cron; this handles Auto-EOTs (EOT = End Of Term).
If you have a HUGE userbase, increase the max EOTs per process.
But NOTE, this runs $per_process
(per Blog) on a Multisite Network.
To increase, use: add_filter ("ws_plugin__s2member_auto_eot_system_per_process");
.
This function makes an important Hook available: ws_plugin__s2member_after_auto_eot_system
.
This Hook is used by some of s2Member Pro's Gateway integrations; allowing CRON processing
to run for important communications; which poll Payment Gateway APIs for possible EOTs.
3.5
int $per_process - Number of database records to process each time. Can also be Filtered with ws_plugin__s2member_auto_eot_system_per_process
.
null
public static bool delete_auto_eot_system()
Deletes all scheduled tasks for s2Member's Auto-EOT System.
3.5
bool - True if able to delete Auto-EOT System schedule, else false.
s2Member's Auto-EOT System (EOT = End Of Term).