public function delete(string
$meta_type,
int
$object_id,
string
$meta_key,
[string
$meta_value = '',
[boolean
$delete_all = false]] )
Parameters
$meta_type
—
string
Type of object metadata is for (e.g., comment, post, or user)
$object_id
—
int
ID of the object metadata is for
$meta_key
—
string
Metadata key
$meta_value
—
string
Optional. Metadata value. Must be serializable if non-scalar. If specified, only delete metadata entries with this value. Otherwise, delete all entries with the specified meta_key.
$delete_all
—
boolean
Optional, default is false. If true, delete matching metadata entries for all objects, ignoring the specified object_id. Otherwise, only delete matching metadata entries for the specified object_id.