delete_term_meta( int $term_id, string $meta_key, mixed $meta_value = '' ): bool
- Since
- 4.4.0
- Source
wp-includes/taxonomy.php:1421
Removes metadata matching criteria from a term.
Parameters
$term_idint- Term ID.
$meta_keystring- Metadata name.
$meta_valuemixedoptional- Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar. Default empty.Default:
''
Return
bool- True on success, false on failure.
Uses · 1
- delete_metadata()Deletes metadata for the specified object.
Source
function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) { return delete_metadata( 'term', $term_id, $meta_key, $meta_value );}History
Introduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.8.8 tag, from
src/wp-includes/taxonomy.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.