WordPress at Your Fingertips
function is not described

WC_Product_Attribute::set_id() public WC 1.0

Set ID (this is the attribute ID).

{} 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_id( $value );
$value(int) (required)
Attribute ID.

Code of WC_Product_Attribute::set_id() WC 5.7.1

public function set_id( $value ) {
	$this->data['id'] = absint( $value );
}