WC_Product_Attribute::set_id()
Set ID (this is the attribute ID).
Метод класса: WC_Product_Attribute{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Product_Attribute = new WC_Product_Attribute(); $WC_Product_Attribute->set_id( $value );
- $value(int) (обязательный)
- Attribute ID.
Код WC_Product_Attribute::set_id() WC Product Attribute::set id WC 9.8.2
public function set_id( $value ) { $this->data['id'] = absint( $value ); }