0

I have reviewed Creating a non-removable taxonomy term but it has not answered my question.

One of the built-in Taxonomy terms is the "post formats". This cannot be edited. What I would like to do is register a taxonomy for which my plugin will provide the terms that, likewise, cannot be edited. How do I do this? Is it possible to hook whatever in core keeps the format taxonomy locked down?

1

When doing register_taxonomy, set the public parameter of the args argument to false.

Most basic example:

register_taxonomy( 'my_tax, 'post', [ 'public' => false ] );

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.