it’s possible, you need to override placeholder #_PENDINGSPACES – here is a similar thread http://wordpress.org/support/topic/plugin-events-manager-booking-notification-email-does-not-show-the-datetime-the-customer-has-booked?replies=4
e.g.
function my_em_bookeddate_placeholders($replace, $EM_Event, $result){
switch( $result ){
case '#_PENDINGSPACES':
$space = $EM_Event->get_bookings()->get_pending_spaces();
if ($space == 1){
$replace = "<img src='..../1.png' />";
}
break;
}
return $replace;
}
add_filter('em_event_output_placeholder','my_em_bookeddate_placeholders',1,3);
Hi agelonwl and thanks very much for your reply. I’m a newbie at PHP too, so I’m sorry about the level of the questions 😐
I am guessing that I’d add this to the theme functions.php file and that it doesn’t matter too much where I add it.
I’m guessing that the placeholder I’d put in my page/post is ‘my_em_bookeddate_placeholders’?
I’m not sure, though, whether I’d put the subsequent
$replace = “<img src=’…./2.png’ />”; etc, eg
$replace = "<img src='..../1.png' />";
}
break;
elseif ($space ==2){
$replace = "<img src='..../2.png' />";
}
break
or after the
return $replace;
}
and I am ashamed to say that I’m not sure what the last line of code does and why it includes 1,3.
Thanks again for your time.
and I am ashamed to say that I’m not sure what the last line of code does and why it includes 1,3.
you will see it’s docs here – http://codex.wordpress.org/Function_Reference/add_filter
1. you need to paste/add the snippet in your theme functions.php
2. you need to use placeholder #_PENDINGSPACES in your settings > formatting or inside a shortcode e.g. [events_list]#_PENDINGSPACES[/events_list]
http://wp-events-plugin.com/documentation/
thanks very much for your help with this – a more experienced php person gave me a hand and it is just what I need.