Documentation

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

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>
Return values
array<string, mixed>
On this page

Search results