PHP Класс Papi_Term_Store, papi

Наследование: extends Papi_Core_Meta_Store
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$term object The WordPress term.
$type string The meta type.

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

Метод Описание
__construct ( integer $id ) The constructor.
get_permalink ( ) : string Get the permalink for the term.
get_property ( string $slug, string $child_slug = '' ) : null | Papi_Core_Property Load property from page type.
get_term ( ) : WP_Term Get the WordPress term object.
valid ( ) : boolean Check if the term is a valid term object.

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

__construct() публичный Метод

The constructor.
public __construct ( integer $id )
$id integer

get_property() публичный Метод

Load property from page type.
public get_property ( string $slug, string $child_slug = '' ) : null | Papi_Core_Property
$slug string
$child_slug string
Результат null | Papi_Core_Property

get_term() публичный Метод

Get the WordPress term object.
public get_term ( ) : WP_Term
Результат WP_Term

valid() публичный Метод

Check if the term is a valid term object.
public valid ( ) : boolean
Результат boolean

Описание свойств

$term защищенное свойство

The WordPress term.
protected object $term
Результат object

$type защищенное свойство

The meta type.
protected string $type
Результат string