WC_Product_Attribute::set_position()publicWC 1.0

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() code WC 9.4.2

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