WordPress at a glance

delete_term_meta() WP 1.0

Removes metadata matching criteria from a term.

Works based on: delete_metadata()

No Hooks.

Return

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

Usage

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

Code of delete term meta: wp-includes/taxonomy.php WP 5.2.2

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

Related Functions

From tag: Metadatas (any)

No comments
    Hello, !     Log In . Register