Core Function
View Source on Trac ↗ delete_metadata_by_mid()
delete_metadata_by_mid( mixed $meta_type, mixed $meta_id ) Deletes metadata by meta ID.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', or any other object type with an associated meta table. Required |
| $meta_id int | ID for a specific meta row. Required |
Return Value
(bool)
True on successful delete, false on failure.
Function Information
Since Version
3.3.0
Source File
wp-includes/meta.php
Advertisement