Set application taxonomies.
<?php
return [
'application.taxonomies.$name' => (boolean|string|array) $enable|$label|$config,
];
The most simplified registration, genre
labels are auto generated as Genre
and Genres
.
<?php
return [
'application.taxonomies.genre' => true,
];
You can also pass in the singular label as a string.
<?php
return [
'application.taxonomies.genre' => 'Types',
];
The standard custom posttype configuration can be passed in.
<?php
return [
'application.taxonomies' => [
'genre' => [
'one' => 'Genre',
'many' => 'Genres',
'links' => [
'post', 'book'
],
'hierarchical' => true,
],
],
];
- To enable better consistency with Intervention, options with
-
will be convereted to_
for WordPress to consume.
<?php
return [
'application.taxonomies.post-tag' => false,
];
Change options on an existing post type.
<?php
return [
'application.taxonomies' => [
'category' => [
'one' => 'Genre',
'many' => 'Genres',
'links' => [
'post', 'book'
],
],
],
];
If you are only changing one option, consider using dot notation for a cleaner config.
<?php
return [
'application.taxonomies.category.links' => [
'post', 'book'
],
];