Property | Type | Description | |
---|---|---|---|
$PostClass | |||
$TermClass | |||
$_children | |||
$name | the human-friendly name of the term (ex: French Cuisine) | ||
$object_type | |||
$representation | |||
$taxonomy | the WordPress taxonomy slug (ex: post_tag or actors) |
Method | Description | |
---|---|---|
__construct ( integer $tid = null, string $tax = '' ) | ||
__toString ( ) : string | ||
children ( ) : array | ||
description ( ) : string | ||
edit_link ( ) : string | ||
from ( $tid, $taxonomy ) : static | ||
get_children ( ) : array | ||
get_edit_url ( ) : string | ||
get_link ( ) : string | ||
get_meta_field ( string $field_name ) : string | ||
get_path ( ) : string | ||
get_posts ( integer $numberposts = 10, string $post_type = 'any', string $PostClass = '' ) : array | boolean | null | Get Posts that have been "tagged" with the particular term | |
link ( ) : string | ||
meta ( string $field_name ) : string | ||
path ( ) : string | ||
posts ( integer $numberposts_or_args = 10, string $post_type_or_class = 'any', string $post_class = '' ) : array | boolean | null | ||
title ( ) : string | ||
update ( string $key, mixed $value ) |
Method | Description | |
---|---|---|
get_term ( integer $tid ) : mixed | ||
get_term_from_query ( ) : integer | ||
get_term_meta ( integer $tid ) : array | ||
get_tid ( integer $tid ) : integer | ||
init ( integer $tid ) |
public __construct ( integer $tid = null, string $tax = '' ) | ||
$tid | integer | |
$tax | string |
public static from ( $tid, $taxonomy ) : static | ||
$tid | ||
$taxonomy | ||
return | static |
public get_meta_field ( string $field_name ) : string | ||
$field_name | string | |
return | string |
protected get_term_meta ( integer $tid ) : array | ||
$tid | integer | |
return | array |