Automattic\WooCommerce\Internal\AbandonedCartRecovery
Scheduler::get_eligible_statuses
Order statuses that can be scheduled for an automated send. Defaults to pending, which is where classic checkout leaves an abandoned order at creation time.
Method of the class: Scheduler{}
Hooks from the method
Returns
String[].
Usage
// private - for code of main (parent) class only $result = $this->get_eligible_statuses( ?WC_Order $order ): array;
- ?WC_Order $order(required)
- .
Scheduler::get_eligible_statuses() Scheduler::get eligible statuses code WC 11.0.1
private function get_eligible_statuses( ?WC_Order $order ): array {
/**
* This filter is documented in includes/emails/class-wc-email-customer-abandoned-cart-recovery.php
*
* @since 11.0.0
*/
return (array) apply_filters(
'woocommerce_abandoned_cart_recovery_eligible_statuses',
array( OrderStatus::PENDING ),
$order
);
}