delete_term_meta

Advertisement

Summery Summery

Removes metadata matching criteria from a term.

Syntax Syntax

delete_term_meta( int $term_id, string $meta_key, mixed $meta_value = '' )

Parameters Parameters

$term_id

(Required) Term ID.

$meta_key

(Required) Metadata name.

$meta_value

(Optional) Metadata value. If provided, rows will only be removed that match the value.

Default value: ''

Return Return

(bool) True on success, false on failure.

Source Source

File: wp-includes/taxonomy.php

	 * @param array         $terms      Array of found terms.
	 * @param array         $taxonomies An array of taxonomies.
	 * @param array         $args       An array of get_terms() arguments.

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply