WordPress at Your Fingertips
function is not described

WC_Data_Store::delete() public WC 3.0.0

Delete an object from the data store.

{} It's a method of the class: WC_Data_Store{}

No Hooks.


null. Nothing.


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


Since 3.0.0 Introduced.

Code of WC_Data_Store::delete() WC 5.7.1

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