Unsetting reserved taxonomy
-
We have a “types” taxonomy. It looks like in v1.9 “types” was added to the reserved list and now we can’t add/edit that taxonomy.
I’ve tried adding the following snippet as a site-specific plugin does not seem to have the desired effect:
function kia_allow_type_tax( $reserved_tax ) { $key = array_search( 'types', $reserved_tax ); if ( false !== $key ) { unset( $reserved_tax[$key] ); } return $reserved_tax; } add_filter( 'cptui_reserved_taxonomies', 'kia_allow_type_tax' );
`
In theory, this seems like it should permit me to save a taxonomy with the “types” slug. However, when attempting to save a new tax, it still shows the error “Please choose a different taxonomy name. type is already registered.” notice.
Is there an alternative way for overriding a reserved taxonomy slug?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Unsetting reserved taxonomy’ is closed to new replies.