wc_get_is_pending_statuses()
Get list of statuses which are consider 'pending payment'.
Hooks from the function
Returns
Array.
Usage
wc_get_is_pending_statuses();
Changelog
| Since 3.6.0 | Introduced. |
wc_get_is_pending_statuses() wc get is pending statuses code WC 10.7.0
function wc_get_is_pending_statuses() {
/**
* Filter the list of statuses which are considered 'pending payment'.
*
* @since 3.6.0
*
* @param array $statuses List of statuses.
*/
return apply_filters( 'woocommerce_order_is_pending_statuses', array( OrderStatus::PENDING ) );
}