WC_WCCOM_Site_Installation_State_Storage::delete_state
Delete state from storage.
Method of the class: WC_WCCOM_Site_Installation_State_Storage{}
No Hooks.
Returns
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() WC WCCOM Site Installation State Storage::delete state code WC 10.5.0
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 );
}