Home › Forums › Front-end Issues › Unable add a new Taxonomy on the Front-end › Reply To: Unable add a new Taxonomy on the Front-end
Well, the weird part was caused by my code, it seems 🙂
This is how it works: ACF is checking the manage_terms
capability.
At first I didn’t understand because manage_terms
is not listed here:
https://codex.wordpress.org/Roles_and_Capabilities
It’s also not available in the User Role Editor plugin, which I was using to assign capabilities to roles.
But manage_terms
is a special capability that is created when you use register_taxonomy()
to register a taxonomy:
https://codex.wordpress.org/Function_Reference/register_taxonomy
It is set up as a reference to another capability, in the example it is manage_categories
. But in my case I had a custom taxonomy where the manage_terms
was set to edit_users
for some reason, and that explains it all!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw
— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.