Support

Home Forums Event Espresso Premium New field in create event

New field in create event

Posted: December 24, 2015 at 3:55 am


Jerome Tan

December 24, 2015 at 3:55 am

Hello,

we want to add one more field in create or update event.

please give me some help how can i do this i have find the template add my field but i am not getting from where its insert or update

please help me for this.

Thanks


Jerome Tan

December 24, 2015 at 3:58 am

Sorry i want to add field in event tickets.

my mistake apologize for that.


Josh

  • Support Staff

December 24, 2015 at 11:57 am

Hi Jerome,

You can use the Advanced Custom Fields plugin to add new fields to the create/edit event page. There are a few examples in the documentation:
https://eventespresso.com/wiki/add-sponsors-section-events-using-advanced-custom-fields/
https://eventespresso.com/wiki/add-course-curriculum-events-using-advanced-custom-fields/

Adding fields to the Ticket editor can be done, but it does require some advanced knowledge of the WordPress plugin API and PHP programming. I can point you to a real world example where an Event Espresso add-on adds a field to the Ticket Editor, and then you can follow the code to see how it works. The add-on that hooks into the ticket editor is the WP Users Integration add-on, and you’ll see the hooks it uses starting on line 53 of EED_WP_Users_Admin.module.php. If you follow the code of each of the callback methods, you’ll see how to add a custom field in the ticket editor.


Jerome Tan

December 25, 2015 at 7:24 pm

Hello,

Thanks for your reply.

i have added the field in ticket creation now i want to display that field in ticket view.

can you plz guide me for that in which function i have to change it i get that field in template view file “ticket_selector_chart.template.php”.

But i want my ticket in category wise so i want to change my array can you plz help me for that which function or file i have to change


Josh

  • Support Staff

December 28, 2015 at 9:39 am

Please do not change any of the functions or files within the Event Espresso plugin. Instead, you can use any of the hooks within the ticket_selector_chart.template.php template.

Here are a list of action hooks within the template that can be used for adding new content:

AHEE__ticket_selector_chart_template__after_ticket_date
AHEE__ticket_selector_chart__template__before_ticket_selector
AHEE__ticket_selector_chart__template__after_ticket_selector
AHEE__ticket_selector_chart__template__after_ticket_selector

Also, there are a number filter hooks that can also be used for changing the content of the ticket selector. These all start with the following:

FHEE__ticket_selector_chart_template__

The support post ‘New field in create event’ 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.

Event Espresso