woocommerce_is_virtual

woocommerce_is_virtual

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_is_virtual') is found 1 times:

  • /includes/abstracts/abstract-wc-product.php line 1600
    1596
    1597
    1598
    1599
    1600
    1601
    1602
    1603
    1604
    1605
    1606
    *
     * @return bool
     */
    public function is_virtual() {
        return apply_filters( 'woocommerce_is_virtual', true === $this->get_virtual(), $this );
    }
     
    /**
     * Returns whether or not the product is featured.
     *
     * @return bool