woocommerce_order_has_status filter-hookWC 1.0

Checks the order status against a passed in status.

Usage

add_filter( 'woocommerce_order_has_status', 'wp_kama_woocommerce_order_has_status_filter', 10, 2 );

/**
 * Function for `woocommerce_order_has_status` filter-hook.
 * 
 * @param  $status 
 * @param  $that   
 *
 * @return 
 */
function wp_kama_woocommerce_order_has_status_filter( $status, $that ){

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

Where the hook is called

WC_Abstract_Order::has_status()
woocommerce_order_has_status
woocommerce/includes/abstracts/abstract-wc-order.php 2221
return apply_filters( 'woocommerce_order_has_status', ( is_array( $status ) && in_array( $this->get_status(), $status, true ) ) || $this->get_status() === $status, $this, $status );

Where the hook is used in WooCommerce

Usage not found.