Home › Forums › Calendar Products › Events Calendar PRO › User capability to manage tribe event categories
- This topic has 3 replies, 2 voices, and was last updated 8 years ago by
johnpokeefe.
-
AuthorPosts
-
April 7, 2018 at 9:17 am #1499559
johnpokeefe
ParticipantHi Guys,
I have explored various contributions to this issue but have not found anything that I can use.I wish simply to use the equivalent of the wp capability manage_categories (which I can easily remove for posts) for tribe events.
The list of user roles and permissions that you provide is lacking this particular capability which I would have thought would be labelled something like: manage_tribe_event_categories.
Are you able to provide me with a route to define / add this capability to user roles.
Many thanks,
John
April 9, 2018 at 5:09 pm #1501087Barry
MemberHi John,
It’s certainly possible to modify the capabilities required to manage categories. A minimal example would look something like this:
https://gist.github.com/barryhughes/b907b8078d25fb2e8ac8b2d3b14b2d03
Once adjusted to meet your specific needs, this could be added either to a custom plugin (preferred) or else to your theme’s functions.php file.
To add your new capabilities to users, you might want to make use of the WP_Roles::add_cap() method or else you could possibly do a lot of this via a suitable plugin if you prefer a non-programmatic approach.
For custom dev tasks like this we’re going to have to leave a lot of the fine detail to you, but I do hope this at least helps to get you started 🙂
April 12, 2018 at 1:20 am #1505164johnpokeefe
ParticipantHi Mat,
Concerned that you didn’t get this.
Does it look practical?
John
John O’Keefe
Websites Administrator
Guildford Arts
01483 428560April 12, 2018 at 7:52 am #1505500Barry
MemberIf you need to share what I outlined by email with someone else (your developer or anyone else who is interested), feel free to send them the following URL:
theeventscalendar.com/support/forums/topic/user-capability-to-manage-tribe-event-categories
May 4, 2018 at 9:35 am #1523017Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘User capability to manage tribe event categories’ is closed to new replies.
