woocommerce_order_is_paid filter-hookWC 2.5.0

Returns if an order has been paid for based on the order status.

Usage

add_filter( 'woocommerce_order_is_paid', 'wp_kama_woocommerce_order_is_paid_filter', 10, 2 );

/**
 * Function for `woocommerce_order_is_paid` filter-hook.
 * 
 * @param  $has_status 
 * @param  $that       
 *
 * @return 
 */
function wp_kama_woocommerce_order_is_paid_filter( $has_status, $that ){

	// filter...
	return $has_status;
}
$has_status
-
$that
-

Changelog

Since 2.5.0 Introduced.

Where the hook is called

WC_Order::is_paid()
woocommerce_order_is_paid
woocommerce/includes/class-wc-order.php 1614
return apply_filters( 'woocommerce_order_is_paid', $this->has_status( wc_get_is_paid_statuses() ), $this );

Where the hook is used in WooCommerce

Usage not found.