WordPress at Your Fingertips
function is not described

WC_Product_Variation::variation_is_active() public WC 1.0

Controls whether this particular variation will appear greyed-out (inactive) or not (active). Used by extensions to make incompatible variations appear greyed-out, etc. Other possible uses: prevent out-of-stock variations from being selected.

{} It's a method of the class: WC_Product_Variation{}

Hooks from the method
Return

true|false.

Usage

$WC_Product_Variation = new WC_Product_Variation();
$WC_Product_Variation->variation_is_active();

Code of WC_Product_Variation::variation_is_active() WC 5.6.0

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