User capability to manage tribe event categories

Home Forums Calendar Products Events Calendar PRO User capability to manage tribe event categories

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1499559
    johnpokeefe
    Participant

    Hi 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

    #1501087
    Barry
    Member

    Hi 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 🙂

    #1505164
    johnpokeefe
    Participant

    Hi Mat,

    Concerned that you didn’t get this.

    Does it look practical?

    John

    John O’Keefe
    Websites Administrator
    Guildford Arts
    01483 428560

    #1505500
    Barry
    Member

    If 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

    #1523017
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘User capability to manage tribe event categories’ is closed to new replies.