has_term_meta

Advertisement

Summery Summery

Get all meta data, including meta IDs, for the given term ID.

Syntax Syntax

has_term_meta( int $term_id )

Parameters Parameters

$term_id

(int) (Required) Term ID.

Return Return

(array|false) Array with meta data, or false when the meta table is not installed.

Source Source

File: wp-includes/taxonomy.php

 * If the meta field for the term does not exist, it will be added.
 *
 * @since 4.4.0
 *
 * @param int    $term_id    Term ID.
 * @param string $meta_key   Metadata key.
 * @param mixed  $meta_value Metadata value. Must be serializable if non-scalar.
 * @param mixed  $prev_value Optional. Previous value to check before updating.
 *                           If specified, only update existing metadata entries with
 *                           this value. Otherwise, update all entries. Default empty.

Advertisement

Changelog Changelog

Changelog
Version Description
4.9.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.