PHP Class Papi_Term_Store, papi

Inheritance: extends Papi_Core_Meta_Store
Afficher le fichier Open project: wp-papi/papi

Protected Properties

Свойство Type Description
$term object The WordPress term.
$type string The meta type.

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

get_property() public méthode

Load property from page type.
public get_property ( string $slug, string $child_slug = '' ) : null | Papi_Core_Property
$slug string
$child_slug string
Résultat null | Papi_Core_Property

get_term() public méthode

Get the WordPress term object.
public get_term ( ) : WP_Term
Résultat WP_Term

valid() public méthode

Check if the term is a valid term object.
public valid ( ) : boolean
Résultat boolean

Property Details

$term protected_oe property

The WordPress term.
protected object $term
Résultat object

$type protected_oe property

The meta type.
protected string $type
Résultat string