WordPress at a glance

delete_term_meta() WP 1.0

Removes metadata matching criteria from a term.

Works based on: delete_metadata()

No Hooks.


true|false. True on success, false on failure.


delete_term_meta( $term_id, $meta_key, $meta_value );
$term_id(int) (required)
Term ID.
$meta_key(string) (required)
Metadata name.
Metadata value. If provided, rows will only be removed that match the value. Must be serializable if non-scalar.
Default: ''


Since 4.4.0 Introduced.

Code of delete_term_meta() WP 5.7.2

function delete_term_meta( $term_id, $meta_key, $meta_value = '' ) {
	return delete_metadata( 'term', $term_id, $meta_key, $meta_value );

From tag: Metadatas (any)

No comments
    Log In