PHP Класс Themosis\Taxonomy\TaxMeta

Allow the user to retrieve a custom field of a taxonomy.
Показать файл Открыть проект

Открытые методы

Метод Описание
all ( string $taxonomySlug, integer $term_id ) : array | boolean Retrieve all custom fields of a term.
get ( string $taxonomySlug, integer $term_id, string $key ) : array | string Retrieve one custom field of a term.

Описание методов

all() публичный статический Метод

Retrieve all custom fields of a term.
public static all ( string $taxonomySlug, integer $term_id ) : array | boolean
$taxonomySlug string The registered taxonomy slug.
$term_id integer The term ID.
Результат array | boolean The custom field values. False if empty.

get() публичный статический Метод

Retrieve one custom field of a term.
public static get ( string $taxonomySlug, integer $term_id, string $key ) : array | string
$taxonomySlug string The registered taxonomy slug.
$term_id integer The term ID.
$key string The key name of the custom field.
Результат array | string The saved value in the option table.