프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$arg_overrides | array | Optional argument overrides passed in from the constructor. | |
$l10n_done | boolean | Whether text-domain has been registered | |
$object_types | array | Objects to register this taxonomy against | |
$plural | string | Plural Taxonomy label | |
$singular | string | Singlur Taxonomy label | |
$taxonomies | array | An array of each Taxonomy_Core object registered with this class | |
$taxonomy | string | Registered Taxonomy name/slug | |
$taxonomy_args | array | All Taxonomy registration arguments |
메소드 | 설명 | |
---|---|---|
__construct ( mixed $taxonomy, array $arg_overrides = [], array $object_types = ['post'] ) | Constructor. Builds our Taxonomy. | |
__toString ( ) : string | Magic method that echos the Taxonomy registered name when treated like a string | |
get_args ( ) : array | Gets the passed in arguments combined with our defaults. | |
l10n ( ) | Load this library's text domain | |
register_taxonomy ( ) | Actually registers our Taxonomy with the merged arguments | |
taxonomies ( string $taxonomy = '' ) : mixed | Provides access to all Taxonomy_Core taxonomy objects registered via this class. | |
taxonomy ( string $key = 'taxonomy' ) : mixed | Provides access to protected class properties. |
public __construct ( mixed $taxonomy, array $arg_overrides = [], array $object_types = ['post'] ) | ||
$taxonomy | mixed | Singular Taxonomy name, or array with Singular, Plural, and Registered |
$arg_overrides | array | Taxonomy registration override arguments |
$object_types | array | Post types to register this taxonomy for |
public __toString ( ) : string | ||
리턴 | string | Taxonomy registered name |
public register_taxonomy ( ) |
public static taxonomies ( string $taxonomy = '' ) : mixed | ||
$taxonomy | string | Specific Taxonomy_Core object to return, or 'true' to specify only names. |
리턴 | mixed | Specific Taxonomy_Core object or array of all |
protected array $arg_overrides | ||
리턴 | array |
protected static bool $l10n_done | ||
리턴 | boolean |
protected array $object_types | ||
리턴 | array |
protected static array $taxonomies | ||
리턴 | array |
protected array $taxonomy_args | ||
리턴 | array |