Removes metadata matching criteria from a term.
Parameters
$term_id
intrequired- Term ID.
$meta_key
stringrequired- Metadata name.
$meta_value
mixedoptional- Metadata value. If provided, rows will only be removed that match the value.
Must be serializable if non-scalar.Default:
''
Source
function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) {
return delete_metadata( 'term', $term_id, $meta_key, $meta_value );
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.