Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create #_PAYMENTINFO
- function em_paymentinfo_placeholder($replace, $EM_Event, $result) {
- if ( $result == '#_PAYMENTINFO' ) {
- global $EM_Event;
- $bankinfo = do_shortcode('[event id="'.$EM_Event->event_id.'"]#_ATT{Bank IBAN}[/event]');
- if ( $bankinfo ) {
- $replace = do_shortcode('[event id="'.$EM_Event->event_id.'"]IBAN: #_ATT{Bank IBAN}<br />{has_bic}BIC/Swift: #_ATT{Bank BIC}<br />{/has_bic}{has_accountholder}Name on account: #_ATT{Account holder}<br />{/has_accountholder}[/event]');
- } else {
- $replace = 'If you choose to pay cash for Super Mango Clinic, don\'t forget to bring it ;)';
- }
- }
- return $replace;
- }
- add_filter('em_event_output_placeholder','em_paymentinfo_placeholder', 1, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement