Home › Forums › Calendar Products › Events Calendar PRO › Request: New capability for tribe_event_settings
- This topic has 3 replies, 2 voices, and was last updated 11 years, 7 months ago by
Brian.
-
AuthorPosts
-
September 4, 2014 at 5:59 am #721735
Nicholas Rios
ParticipantMy main objective is to allow a specific set of users the ability to edit events and the HTML (content) above and below the events area. While the events have their own capabilities, the capability to edit the HTML content is on the settings page, and the settings page is tied to the capability manage_options. In order to allow them access to this area I have to also give them access to all the other things that the capability manage_options gives access to (a lot of WordPress settings).
I would like it if you guys could separate this out of manage_options, in order to math the rest of the TEC’s capabilities and to allow for more customization. Or, if looking for backwards compatability, maybe make it ( tribe_event_settings || manage_options ) or something?
Let me know what you think.
September 4, 2014 at 2:31 pm #722663Brian
MemberHello,
I like your idea and I will bring it to the attention of our developers.
I would also recommend heading to our UserVoice page and making it a suggestion there as that is where we get ideas for many of our new features.
As for if or when we may add this feature I do not have any information on that.
In the mean time you maybe able to create setting page of your own with two editor fields and give that the capability you would like to view it. Then using hooks you could show those two fields the same way the Events Settings fields would show.
I have used this coding in the past to create a settings page, it could be a good place to start:
https://github.com/justinwhall/WordPress-theme-options/tree/master/theme-options
Thanks
September 5, 2014 at 5:49 am #724390Nicholas Rios
ParticipantThat’s a great idea Brian, thanks. I’ve also added the idea to UserVoice.
September 5, 2014 at 6:21 am #724443Brian
MemberGreat!, thanks for posting on our Uservoice.
I was reading yesterday and saw an article on a Settings API Generator. It is a basic one, but I just tested it out and it created a settings area with a Textarea in a minute.
http://wpsettingsapi.jeroensormani.com/
Could be something to get you started and then you can add in the features you want to the base coding.
Since the original response is answered I am going to close this ticket, but if you have any questions related to this or anything else please create another ticket and we will get back to you.
Thanks
By the way, if you have a minute or two, we would love it if you’d write a few words for us here: http://wordpress.org/support/view/plugin-reviews/the-events-calendar?filter=5
-
AuthorPosts
- The topic ‘Request: New capability for tribe_event_settings’ is closed to new replies.
