Change WordPress user roles and capabilities Forums Give user access to plugin – how to Limit user to changing a single page & add events through The Event Calendar

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3631
    leodruker
    Participant

    I’m having a bit of a strange problem.

    I have The Events Calendar plug-in installed.

    I also have the role editor plug-in installed and am using it to create users who only have the ability to edit a specific page (using that page’s ID).

    However, I’d like for them to also be able to add new events. When they do, as the event is published, it gives them an error that they don’t have permission to edit that item. I assume this is happening because as the event is being posted, it gets an ID that the user is not allowed to publish.

    Is there a workaround for something like this?
    Is there a way to restrict them to editing one page, but still allow them to post events?

    #3632
    Vladimir
    Keymaster

    This filter offer a workaround especially for similar cases:

    ure_restrict_edit_post_type

    Exclude you events custom post type from the edit restrictions using this filter.

    #3633
    leodruker
    Participant

    That’s great! One quick question – where can I insert this code?

    #3634
    Vladimir
    Keymaster

    You can insert your version of a code into active theme’s functions.php file.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.