WC_Abstract_Order::has_status( array|string $status )

Checks the order status against a passed in status.


Description Description


Parameters Parameters

$status

(Required) Status to check.


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/abstracts/abstract-wc-order.php

	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 );
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.