woocommerce_variation_is_visible

woocommerce_variation_is_visible

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

See hook in core

Displaying hooks found in version: woocommerce.9.9.5

apply_filters('woocommerce_variation_is_visible') is found 1 times:

  • /includes/class-wc-product-variation.php line 593
    		 * @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