Clarkson_Taxonomy
in package
Clarkson Taxonomy class.
Table of Contents
- __construct() : mixed
- __get() : mixed
- Proxy requested properties to Taxonomy if it doesn't exist in Clarkson Taxonomy
- __isset() : bool
- Exists check for __get function
- get() : Clarkson_Taxonomy|null
- Get taxonomy object by taxonomy name
- get_many() : array<string|int, Clarkson_Taxonomy>
- Get all available Clarkson Taxonomy objects
- get_supported_post_types() : array<string|int, string>
- Get the post type names that support this taxonomy.
- get_taxonomy() : WP_Taxonomy
- Get the taxonomy data.
- get_terms() : array<string|int, Clarkson_Term>
- Get multiple terms.
- get_title() : string
- Get the taxonomy title.
Methods
__construct()
public
__construct(WP_Taxonomy $taxonomy) : mixed
Parameters
- $taxonomy : WP_Taxonomy
Return values
mixed —__get()
Proxy requested properties to Taxonomy if it doesn't exist in Clarkson Taxonomy
public
__get(string $name) : mixed
Parameters
- $name : string
-
Field to search by.
Tags
Return values
mixed —__isset()
Exists check for __get function
public
__isset(string $name) : bool
Parameters
- $name : string
-
Field to search by.
Return values
bool —property exists
get()
Get taxonomy object by taxonomy name
public
static get(string $taxonomy) : Clarkson_Taxonomy|null
Parameters
- $taxonomy : string
Return values
Clarkson_Taxonomy|null —get_many()
Get all available Clarkson Taxonomy objects
public
static get_many([array<string|int, mixed> $args = array() ][, string $operator = 'and' ]) : array<string|int, Clarkson_Taxonomy>
Parameters
- $args : array<string|int, mixed> = array()
-
Taxonomy arguments
- $operator : string = 'and'
-
One of 'and', 'or', or 'not'
Tags
Return values
array<string|int, Clarkson_Taxonomy> —get_supported_post_types()
Get the post type names that support this taxonomy.
public
get_supported_post_types() : array<string|int, string>
Return values
array<string|int, string> —get_taxonomy()
Get the taxonomy data.
public
get_taxonomy() : WP_Taxonomy
Return values
WP_Taxonomy —get_terms()
Get multiple terms.
public
get_terms(array<string|int, mixed> $args) : array<string|int, Clarkson_Term>
Parameters
Tags
Return values
array<string|int, Clarkson_Term> —get_title()
Get the taxonomy title.
public
get_title() : string