WC_Data_Store::delete()publicWC 3.0.0

Delete an object from the data store.

Method of the class: WC_Data_Store{}

No Hooks.

Return

null. Nothing (null).

Usage

$WC_Data_Store = new WC_Data_Store();
$WC_Data_Store->delete( $data, $args );
$data(WC_Data) (required) (passed by reference — &)
WooCommerce data instance.
$args(array)
Array of args to pass to the delete method.
Default: array()

Changelog

Since 3.0.0 Introduced.

WC_Data_Store::delete() code WC 8.7.0

public function delete( &$data, $args = array() ) {
	$this->instance->delete( $data, $args );
}