Advertisement
eventsmanager

Intercept JSON Booking Success message

Feb 22nd, 2013
553
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. This snippet will allow users to modify successful booking message
  3. */
  4. function em_mod_success_message($result,$EM_Booking){
  5. $result['message'] = $EM_Booking->output(get_option('dbem_booking_feedback'));
  6. return $result;
  7. }
  8. add_filter('em_action_booking_add','em_mod_success_message',100,2);
  9. //or
  10. //add_filter('em_booking_save','em_mod_success_message',100,2);
Advertisement
RAW Paste Data Copied
Advertisement