WC_Product_Attribute::set_id
Set ID (this is the attribute ID).
Method of the class: WC_Product_Attribute{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WC_Product_Attribute = new WC_Product_Attribute(); $WC_Product_Attribute->set_id( $value );
- $value(int) (required)
- Attribute ID.
WC_Product_Attribute::set_id() WC Product Attribute::set id code WC 10.7.0
public function set_id( $value ) {
$this->data['id'] = absint( $value );
}