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.
Return Return
(bool)
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 ); }