bh_sl_tax_cpts
Description
Filter the $object_type parameter of register_taxonomy to add additional post types. This allows the default “Location Categories” taxonomy to be applied to additional or alternative post types.
Parameters
Name | Type | Description |
---|---|---|
$cpts | array | Array of object_types |
Example
The following example applies the Location Categories taxonomy to a “locations” custom post type (registered separately – that code is not included).