WordPress at Your Fingertips

delete_term_meta() WP 1.0

Removes metadata matching criteria from a term.

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.8.1

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

Metadatas (any)

No comments
    Log In