WooCommerce Code Reference

WC_Object_Data_Store_Interface

WC Data Store Interface

Tags
version
3.0.0

Table of Contents

add_meta()  : int
Add new piece of meta.
create()  : mixed
Method to create a new record of a WC_Data based object.
delete()  : void
Deletes a record from the database.
delete_meta()  : mixed
Deletes meta based on meta ID.
read()  : mixed
Method to read a record. Creates a new WC_Data based object.
read_meta()  : array<string|int, mixed>
Returns an array of meta for an object.
update()  : mixed
Updates a record in the database.
update_meta()  : mixed
Update meta.

Methods

delete_meta()

Deletes meta based on meta ID.

public delete_meta(WC_Data &$data, object $meta) : mixed

Implementations might return different types. See: https://github.com/woocommerce/woocommerce/issues/30926

Parameters
$data : WC_Data

Data object.

$meta : object

Meta object (containing at least ->id).

Tags
phpstan-ignore

missingType.return (The return value is intentionally not part of this contract.)

Return values
mixed —