WordPress at Your Fingertips
function is not described

WC_Product_Attribute::set_position() public WC 1.0

Set position.

{} It's a method of the class: WC_Product_Attribute{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Product_Attribute = new WC_Product_Attribute();
$WC_Product_Attribute->set_position( $value );
$value(int) (required)
Attribute position.

Code of WC_Product_Attribute::set_position() WC 5.6.0

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