Require Specific Role for User Submit

Home Forums Calendar Products Community Events Require Specific Role for User Submit

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #945842

    Hiya –

    I have multiple user roles. How can I only allow a specific role to submit events? Unticking “Allow anonymous submissions” allows any role to submit.

    Thanks,
    Ash

    #946122
    Brian
    Member

    Hello,

    Thanks for using our plugins. We do not have a feature to limit the front end form to a specific role.

    You could follow our themer’s guide:

    https://theeventscalendar.com/knowledgebase/themers-guide/

    And wrap the coding in this file after moving it to your theme:

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

    With a check for a User Role using this WordPress Function:

    http://codex.wordpress.org/Function_Reference/current_user_can

    You could do that for these files as well:

    event-list.php
    edit-organizer.php
    edit-venue.php

    Let me know if you have any follow up questions.

    Thanks

    #959513
    Brian
    Member

    Since I haven’t heard back from you here, I’m going to go ahead and close out this thread. Feel free to start a new thread if you have further issues. Thanks! 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Require Specific Role for User Submit’ is closed to new replies.