woocommerce_order_has_status

woocommerce_order_has_status

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_order_has_status') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2412
    	 * @param array|string $status Status to check.
    	 * @return bool
    	 */
    	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 );
    	}
    
    	/**
    	 * Check whether this order has a specific shipping method or not.
    	 *
    	 * @param string $method_id Method ID to check.