WC_WCCOM_Site_Installation_State_Storage::delete_state()public staticWC 1.0

Delete state from storage.

Method of the class: WC_WCCOM_Site_Installation_State_Storage{}

No Hooks.

Return

true|false.

Usage

$result = WC_WCCOM_Site_Installation_State_Storage::delete_state( $state ) : bool;
$state(WC_WCCOM_Site_Installation_State) (required)
The state to delete.

WC_WCCOM_Site_Installation_State_Storage::delete_state() code WC 9.4.2

public static function delete_state( WC_WCCOM_Site_Installation_State $state ) : bool {
	$storage_key = self::get_storage_key( $state->get_product_id() );

	return delete_option( $storage_key );
}