WC_Product_Variation::variation_is_active()

Controls whether this particular variation will appear greyed-out (inactive) or not (active).


Description Description

Used by extensions to make incompatible variations appear greyed-out, etc. Other possible uses: prevent out-of-stock variations from being selected.


Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-product-variation.php

	public function variation_is_active() {
		return apply_filters( 'woocommerce_variation_is_active', true, $this );
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.