woocommerce_variation_is_visible

woocommerce_variation_is_visible

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_variation_is_visible') is found 1 times:

  • /includes/class-wc-product-variation.php line 593
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
         * @param int $variation_id The variation ID.
         * @param int $product_id The product ID.
         * @param object $variation The variation object.
         */
        return apply_filters( 'woocommerce_variation_is_visible', ProductStatus::PUBLISH === get_post_status( $this->get_id() ) && '' !== $this->get_price(), $this->get_id(), $this->get_parent_id(), $this );
    }
     
    /**
     * Return valid tax classes. Adds 'parent' to the default list of valid tax classes.
     *
     * @return array valid tax classes