WC_Object_Data_Store_Interface::delete()
Deletes a record from the database.
Method of the class: WC_Object_Data_Store_Interface{}
No Hooks.
Return
true|false
. result
Usage
$WC_Object_Data_Store_Interface = new WC_Object_Data_Store_Interface(); $WC_Object_Data_Store_Interface->delete( $data, $args );
- $data(WC_Data) (required) (passed by reference — &)
- Data object.
- $args(array)
- Array of args to pass to the delete method.
Default: array()
WC_Object_Data_Store_Interface::delete() WC Object Data Store Interface::delete code WC 9.4.2
public function delete( &$data, $args = array() );