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
* } */ 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. |