There was an error while loading. Please reload this page.
The associations parameter in a taxonomy model will define to which post types this particular taxonomy will be associated with.
associations
It can either be an array or a string. It will be used as the second parameter in the register_taxonomy function from WordPress.
array
string
Usually you would use one or multiple post types that you create in the same plugin.
Example:
return [ 'type' => 'category', 'name' => 'genre', 'associations' => [ 'book', ], ];
Home