Skip Navigation

[Resolved] Giving permission to users to create, edit, delete etc. custom categories

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 1 year, 5 months ago.

Assisted by: Minesh.

Author
Posts
#2673811
toolset permission.jpg

Hey. We have a page where we have different user roles for each language. One of our language translators has asked for permission to create categories on the page. These are custom taxonomies, so I cannot find them when trying to add the permission for the given language. Is this possible? To clarify I have attatched an image with the page needed for permission.

In case it is easier for you to visit the site yourself and see it, I can provide credentials.

All the best,

Klaus

#2674191

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Have you checked the Toolset Access control settings for the taxonomy?

Please check the following doc for more info:
- https://toolset.com/course-lesson/setting-access-control/#taxonomy

#2675423

I can do that - but if I give access this way they can edit every countrys taxonomy, and not only their own

#2675425

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Taxonomies are usually public and unlike posts taxonomies do not store any related content for author.

In the Backend admin, any user who has capabilities to edit or add posts for the post type where the taxonomy is attached to, can see the terms of that taxonomy as well. It does not matter really who crates the term.

You will see more explanation with the following link:
- https://wordpress.stackexchange.com/questions/27655/restricting-users-to-view-only-custom-taxonomies-they-have-entered

You will have to add your own custom code to achieve such custom goad. If you need such custom programming, you are welcome to contact any of our certified partners.
=> https://toolset.com/contractors/

#2675433

We have different categories for each country - so they are not linked. So when Germany for example creates a new category it will not appear anywhere else - but it will not be possible through Toolset to control this, country wise, as far as I understand?

Do you have any documentation to guide me in how to program it myself? 🙂

#2675545

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

As shared there is no native way - you can add custom term field that will hold the value of current loggin user ID (author ID).
=> https://toolset.com/documentation/term-fields/

Then you should try to use pre_get_terms hook in order to show only terms belongs to that current loggedin user matching the custom term field that holds the value of user ID.

More info:
- https://wordpress.stackexchange.com/questions/338834/change-default-ordering-of-taxonomy-terms-pre-get-terms
- hidden link

Related ticket that might help you:
- https://toolset.com/forums/topic/show-only-terms-created-by-current-user-in-taxonomy-dropdown-on-the-form/