Let me be a bit more explicit about what I am trying to do.
I have managed to create an extra field in my user profile = ‘Organization’.
When a user is adding a new event the organization to which they belong is known. I am using the categories associated with events to be the organizations using my application.
Hence I would like to bypass the category selection dropdown when a user adds an event with the category for the event being set to the name of the organization to which he/she belongs.
It looks like the event-editor.php file is the one I need to target. I have followed your guidelines for using templates by copying that file into my theme, but I am unsure as to how to deal with the content in that file.
Some clues as to how I can achieve this would be appreciated.
I think I have found a way to achieve what I would like.
I have removed the line
<?php if(get_option('dbem_categories_enabled')) { em_locate_template('forms/event/categories-public.php',true); } ?>
from event-editor.php
Now the categories dropdown does not appear when a subscriber adds a new event. As the admin I can readily add in the category (organization) when I deal with pending events.
What do the events-manager gurus make of this? Anything I should be aware of?
Hi,
What do the events-manager gurus make of this? Anything I should be aware of?
editing event-editor.php template should be fine and safe.