Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Order::get_retry_rules()
Get configured payment retry rules
Return Return
(array[]) An array of retry rule arrays.
- 'delay'
(int) The number of seconds to delay to use when scheduling the retry attempt. - 'status'
(string) The status of the order while awaiting the next retry. - 'notifications'
(bool) Whether or not to trigger notifications to the student/user.
Source Source
File: includes/models/model.llms.order.php
996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 | * } */ private function get_retry_rules() { $rules = array ( array ( 'delay' => HOUR_IN_SECONDS * 12, 'status' => 'on-hold' , 'notifications' => false, ), array ( 'delay' => DAY_IN_SECONDS, 'status' => 'on-hold' , 'notifications' => true, ), array ( 'delay' => DAY_IN_SECONDS * 2, 'status' => 'on-hold' , 'notifications' => true, ), array ( 'delay' => DAY_IN_SECONDS * 3, 'status' => 'on-hold' , 'notifications' => true, ), ); /** * Filters the automatic payment recurring retry rules. * * @since 7.0.0 * * @param array $rules Array of retry rule arrays {@see LLMS_Order::get_retry_rules()}. * @param LLMS_Order $rules The order object. */ return apply_filters( 'llms_order_automatic_retry_rules' , $rules , $this ); |
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.10.0 | Introduced. |