Intercept JSON Booking Success message

Feb 22nd, 2013
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);
RAW Paste Data

Adblocker detected! Please consider disabling it...

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

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

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