TaxonomyDto
in package
Read onlyYes
FinalYes
Host-neutral shape for a WordPress taxonomy.
Table of Contents
Properties
- $hierarchical : bool
- $objectTypes : array<string|int, mixed>
- $plural : string
- $singular : string
- $slug : string
Methods
- __construct() : mixed
Properties
$hierarchical
public
bool
$hierarchical
= false
$objectTypes
public
array<string|int, mixed>
$objectTypes
= []
$plural
public
string
$plural
$singular
public
string
$singular
$slug
public
string
$slug
Methods
__construct()
public
__construct(string $slug, string $singular, string $plural[, array<int, string> $objectTypes = [] ][, bool $hierarchical = false ]) : mixed
Parameters
- $slug : string
- $singular : string
- $plural : string
- $objectTypes : array<int, string> = []
- $hierarchical : bool = false