WC_Data_Store::delete()
Delete an object from the data store.
Method of the class: WC_Data_Store{}
No Hooks.
Return
null
. Nothing.
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() WC Data Store::delete code WC 7.7.0
public function delete( &$data, $args = array() ) { $this->instance->delete( $data, $args ); }