WordPress at Your Fingertips
function is not described

WC_Product_Attribute::set_variation() public WC 1.0

Set if variation.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Attribute = new WC_Product_Attribute();
$WC_Product_Attribute->set_variation( $value );
$value(true|false) (required)
If is used for variations.

Code of WC_Product_Attribute::set_variation() WC 5.6.0

public function set_variation( $value ) {
	$this->data['variation'] = wc_string_to_bool( $value );
}