Core Function
View Source on Trac ↗ delete_term_meta()
delete_term_meta( mixed $term_id, mixed $meta_key, mixed $meta_value = '' ) Removes metadata matching criteria from a term.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $term_id int | Term ID. Required |
| $meta_key string | Metadata name. Required |
| mixed | $meta_value Optional. Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar. Default empty. Required |
Return Value
(bool)
True on success, false on failure.
Function Information
Since Version
4.4.0
Source File
wp-includes/taxonomy.php
Advertisement