WC_Data::set_id()publicWC 3.0.0

Set ID.

Method of the class: WC_Data{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Data = new WC_Data();
$WC_Data->set_id( $id );
$id(int) (required)
ID.

Changelog

Since 3.0.0 Introduced.

WC_Data::set_id() code WC 8.7.0

public function set_id( $id ) {
	$this->id = absint( $id );
}