Type Alias: CustomTaxonomy
CustomTaxonomy =
object
Defined in: packages/core/src/types.ts:27
Properties
endpoint
endpoint:
string
Defined in: packages/core/src/types.ts:29
matchArchivePath?
optionalmatchArchivePath:boolean
Defined in: packages/core/src/types.ts:42
Whether this custom taxonomy should match the archive path
If set to true, then when querying a taxonomy archive page such as /[taxonmy-slug]/[term-slug] the
term.link property should match the current path. This will avoid matching nested categories that doesn't exist for instance:
/[taxonmy-slug]/fake-parent-term/[term-slug] will not match if this option is set to true even though term-slug exists.
Default
false
restParam?
optionalrestParam:string
Defined in: packages/core/src/types.ts:31
rewrite?
optionalrewrite:string
Defined in: packages/core/src/types.ts:30
slug
slug:
string
Defined in: packages/core/src/types.ts:28