ClarksonCore

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
throws
Exception

Error message.

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_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
$args : array<string|int, mixed>

Tax query arguments.

Tags
example

Clarkson_Taxonomy->get_terms( array( 'posts_per_page' => 5 ) );

Return values
array<string|int, Clarkson_Term>

get_title()

Get the taxonomy title.

public get_title() : string
Return values
string

        

Search results