. * * @package WooCommerce Subscriptions * @author Prospress Inc. * @since 1.0 */ /** * Apply our own set of retry rules. */ function wcsfptrr_retry_rules( $default_retry_rules_array ) { return array( array( 'retry_after_interval' => 60, 'email_template_customer' => 'WCS_Email_Customer_Payment_Retry', 'email_template_admin' => 'WCS_Email_Payment_Retry', 'status_to_apply_to_order' => 'pending', 'status_to_apply_to_subscription' => 'on-hold', ), array( 'retry_after_interval' => 120, 'email_template_customer' => 'WCS_Email_Customer_Payment_Retry', 'email_template_admin' => 'WCS_Email_Payment_Retry', 'status_to_apply_to_order' => 'pending', 'status_to_apply_to_subscription' => 'on-hold', ), array( 'retry_after_interval' => 180, 'email_template_customer' => 'WCS_Email_Customer_Payment_Retry', 'email_template_admin' => 'WCS_Email_Payment_Retry', 'status_to_apply_to_order' => 'pending', 'status_to_apply_to_subscription' => 'on-hold', ), array( 'retry_after_interval' => 240, 'email_template_customer' => 'WCS_Email_Customer_Payment_Retry', 'email_template_admin' => 'WCS_Email_Payment_Retry', 'status_to_apply_to_order' => 'pending', 'status_to_apply_to_subscription' => 'on-hold', ), array( 'retry_after_interval' => 300, 'email_template_customer' => 'WCS_Email_Customer_Payment_Retry', 'email_template_admin' => 'WCS_Email_Payment_Retry', 'status_to_apply_to_order' => 'pending', 'status_to_apply_to_subscription' => 'on-hold', ), ); } add_filter( 'wcs_default_retry_rules', 'wcsfptrr_retry_rules' );