Booking id as Reference Id

Sep 11th, 2013
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. Create placeholder for reference id which uses booking id
  3. however this is padded by 0 and max of 10 digit.
  4. */
  5. add_filter('em_booking_output_placeholder','my_em_placeholders_custom_bookingid',1,3);
  6. function my_em_placeholders_custom_bookingid($replace, $EM_Booking, $result){
  7. switch( $result ){
  8. case '#_REFERENCEID':
  9. $replace = str_pad($EM_Booking->booking_id, 10, '0', STR_PAD_LEFT);
  10. break;
  11. }
  12. return $replace;
  13. }
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.