I’m just doing some initial discovery / experimenting with regards to reworking the Events’ Venue (Details) meta box. Two things to explore:
1) Using an AJAX based search, instead of a select. As the number of venues grows (and the client anticipates they will), that select might be too long. It’s also vague in the sense that there are no details (e.g., City, St). I wanting to rework that UX.
2) Explore the possibility of multiple venues per event. Specifically, it’s more along the lines of associate multiple places with an event. For example, Venue and Hotel.
#2 isn’t a top priority, yet. #1 seems kinda necessary. Any thoughts on either would be appreciated.
But here’s my immediate problem: I can’t seem to remove the Venue Details meta box. I can add my own meta box(es) but I’ve tried a couple meta box ids:
I’ve done some code diving / searching and frankly, I can’t even find where that meta box is added / created.
p.s. I’m also needing to add a Staff Schedule meta box. Basically to assign employees (read: WP users) to an event. If you have any thought on that as well, please let me know. I’d like to try to avoid adding another custom (SQL) table, and do believe that it’s possible to just use post_meta, I hope. That said, you’re more familiar with EE than I am, so that’s why I’m looking for any tips, tricks, etc.
The espresso_event_editor_venue meta box is added in admin_pages/events/Events_Admin_Page.core.php on line 1197 (in 4.4.3.p). If you are having trouble removing it, you might be trying to early, before that line is run. Almost all the code in EE is added to WP hooks, so you might try putting your code to remove the meta box into a later hook.
As far as adding staff to an event, you’re probably right in using the post_meta table.
Viewing 1 reply thread
The support post ‘Events CPT – Removing / reworking the Venue meta box’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.