TaxonomyDefinition
in package
Read onlyYes
FinalYes
Declarative taxonomy bound to one or more post types.
Table of Contents
Properties
- $args : array<string|int, mixed>
- $objectTypes : array<string|int, mixed>
- $plural : string
- $singular : string
- $slug : string
Methods
- __construct() : mixed
- toArgs() : array<string, mixed>
Properties
$args
public
array<string|int, mixed>
$args
= []
$objectTypes
public
array<string|int, mixed>
$objectTypes
$plural
public
string
$plural
$singular
public
string
$singular
$slug
public
string
$slug
Methods
__construct()
public
__construct(non-empty-string $slug, array<int, string> $objectTypes, string $singular, string $plural[, array<string, mixed> $args = [] ]) : mixed
Parameters
- $slug : non-empty-string
- $objectTypes : array<int, string>
-
post type slugs the taxonomy attaches to
- $singular : string
- $plural : string
- $args : array<string, mixed> = []
-
overrides merged over the derived defaults
toArgs()
public
toArgs() : array<string, mixed>