WC_WCCOM_Site_Installation_State::initiate_new()
Initiate a new installation state.
Method of the class: WC_WCCOM_Site_Installation_State{}
No Hooks.
Return
WC_WCCOM_Site_Installation_State
. The instance.
Usage
$result = WC_WCCOM_Site_Installation_State::initiate_new( $product_id, $idempotency_key );
- $product_id(init) (required)
- The product ID.
- $idempotency_key(string) (required)
- The idempotency key.
WC_WCCOM_Site_Installation_State::initiate_new() WC WCCOM Site Installation State::initiate new code WC 9.3.3
public static function initiate_new( $product_id, $idempotency_key ) { $instance = new self( $product_id ); $instance->idempotency_key = $idempotency_key; $instance->started_date = time(); return $instance; }