WordPress at Your Fingertips
function is not described

WC_Abstract_Order::has_status() public WC 1.0

Checks the order status against a passed in status.

{} It's a method of the class: WC_Abstract_Order{}

Hooks from the method

Return

true|false.

Usage

$WC_Abstract_Order = new WC_Abstract_Order();
$WC_Abstract_Order->has_status( $status );
$status(array|string) (required)
Status to check.

Code of WC_Abstract_Order::has_status() WC 5.8.0

public function has_status( $status ) {
	return apply_filters( 'woocommerce_order_has_status', ( is_array( $status ) && in_array( $this->get_status(), $status, true ) ) || $this->get_status() === $status, $this, $status );
}