woocommerce_order_has_status

woocommerce_order_has_status

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_order_has_status') is found 1 times:

  • /includes/abstracts/abstract-wc-order.php line 2441
    2437
    2438
    2439
    2440
    2441
    2442
    2443
    2444
    2445
    2446
    2447
    * @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.