WC_Product_Attribute::set_position()
Set position.
Method of the class: WC_Product_Attribute{}
No Hooks.
Return
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 9.4.2
public function set_position( $value ) { $this->data['position'] = absint( $value ); }