Свойство | Тип | Описание | |
---|---|---|---|
$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 string $taxonomy | ||
Результат | string |
protected array $taxonomy_args | ||
Результат | array |