WC_Product_Attribute::set_position
Set position.
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_position( $value );
- $value(int) (required)
- Attribute position.
WC_Product_Attribute::set_position() WC Product Attribute::set position code WC 10.8.1
public function set_position( $value ) {
$this->data['position'] = absint( $value );
}