wc_get_is_paid_statuses

Get list of statuses which are consider 'paid'.

Description

(array) wc_get_is_paid_statuses(); 

Returns (array)


Usage

  1. if ( !function_exists( 'wc_get_is_paid_statuses' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-order-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wc_get_is_paid_statuses(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-order-functions.php  
  1. function wc_get_is_paid_statuses() { 
  2. return apply_filters( 'woocommerce_order_is_paid_statuses', array( 'processing', 'completed' ) );