Advertisement
eventsmanager

Payment Gateway

Mar 19th, 2013
604
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter('em_booking_output_placeholder','my_em_get_payment_type',1,3);
  2. function my_em_get_payment_type($replacement, $EM_Booking, $result){
  3. if (is_object($EM_Booking)) {
  4. if ($result == '#_PAYMENTGATEWAY') {
  5. $replacement = $EM_Booking->booking_meta['gateway'];
  6. }
  7. }
  8.  
  9. return $replacement;
  10. }
Advertisement
RAW Paste Data Copied
Advertisement