PHP Class Papi_Term_Store, papi

Inheritance: extends Papi_Core_Meta_Store
Show file Open project: wp-papi/papi

Protected Properties

Property Type Description
$term object The WordPress term.
$type string The meta type.

Public Methods

Method 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 method

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

get_property() public method

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

get_term() public method

Get the WordPress term object.
public get_term ( ) : WP_Term
return WP_Term

valid() public method

Check if the term is a valid term object.
public valid ( ) : boolean
return boolean

Property Details

$term protected property

The WordPress term.
protected object $term
return object

$type protected property

The meta type.
protected string $type
return string