eventsmanager

Admin Bookings Summary Page - Event ID

Dec 13th, 2017
325
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. * paste in your theme functions.php
  3. * after adding in your functions.php, go to Events > Bookings > Recent Bookings or by clicking an specific
  4. * click on the Gear icon and drag&drop field "Event ID"
  5. */
  6.  
  7. function my_em_bookings_table_cols_template_attendee2($template, $EM_Bookings_Table){
  8. $template['event_id'] = 'Event ID';
  9. return $template;
  10. }
  11. add_action('em_bookings_table_cols_template', 'my_em_bookings_table_cols_template_attendee2',10,2);
  12.  
  13. function my_em_custom_booking_form_cols_attendee_list($val, $col, $EM_Booking, $EM_Bookings_Table, $csv){
  14.  
  15. if( $col == 'event_id' ){
  16. $val = $EM_Booking->get_event()->event_id;
  17. }
  18.  
  19. return $val;
  20. }
  21. add_filter('em_bookings_table_rows_col','my_em_custom_booking_form_cols_attendee_list', 10, 5);
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×