Permission to add events

Home Forums Calendar Products Community Events Permission to add events

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #896716
    Pia
    Participant

    I’d like to have all other WP roles except Subscribers to have a permission to add new events via link mywebsite.com/community/add. Is this possible? Thanks in advance!

    #897703
    Brian
    Member

    Hi,

    It is possible to lock out the Subscriber Role from making Events. However there is no setting to change that.

    You can follow the themer’s guide and do some quick editing to get it.

    https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/

    Move this file to your theme following that guide:

    \the-events-calendar-community-events\views\community\edit-event.php

    Then you can wrap the form in an if statement and use this function to check if a subscriber.

    if ( !current_user_can('subscriber') ) {
    //Form Content
    }

    That should get you close so you can take it from here.

    Let me know if you have any follow up questions.

    Thanks

    #929932
    Brian
    Member

    Since there is has not been any activity on this thread for over 2 weeks so I am now closing it. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Permission to add events’ is closed to new replies.