Support

Home Forums Custom Files Add-on (EE3) ee3 event meta image

ee3 event meta image

Posted: June 14, 2016 at 7:00 am

Viewing 1 reply thread


wayne

June 14, 2016 at 7:00 am

Hi All, i have recently moved back to ee3 purely because weekly recurring events seem to be handled better than ee4. I have custom functions etc installed and since ee3 does not support afc i am looking for a way to add an additional image to an event via a meta box and image loader ( I cant expect someone to type in the url), I have tested a few examples from the forum but none are working for me. Is this even possible and can someone point me in the right direction. I have started with

add_action( 'add_meta_boxes', 'home_add_meta_boxes' );
   

function home_add_meta_boxes() {
  add_meta_box(
    'banner', 
    esc_html__( 'Banner', 'event_espresso' ), 
    'home_banner_meta_box', 
    'espresso_events', 
    'side', 
    'default'  
  );
}

Thanks everyone


Josh

  • Support Staff

June 16, 2016 at 8:18 am

Hi Wayne,

The first thing is you install the Debug Bar plugin + the Debug Bar Actions and Filters extension. This way you’ll be able to know which hooks fire on the admin pages where you want to make a customization.

Once you have those set up, you’ll find that the add_meta_boxes hook doesn’t fire on the EE3 Event editor page. You can use these hooks on the add new event page:

  • action_hook_espresso_new_event_right_column_top
  • action_hook_espresso_new_event_right_column_bottom
  • action_hook_espresso_new_event_left_column_advanced_options_top

So that’s for the Add New Event page. These are the hooks you can use on the Edit Event page:

  • action_hook_espresso_edit_event_right_column_top
  • action_hook_espresso_edit_event_right_column_bottom
  • action_hook_espresso_edit_event_left_column_advanced_options_top
Viewing 1 reply thread

The support post ‘ee3 event meta image’ 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