try this tutorial – http://wp-events-plugin.com/tutorials/create-a-custom-placeholder-for-event-formatting/
*replace event with location then try something like this $replace = $EM_Location->location_address;
however can I know what customization you need at placeholder #_LOCATIONADDRESS ?
Hi angelo. You are an early riser 🙂
I’m sorry. I wrote wrong title topic.
I want to create a CUSTOM CONDITIONAL PLACEHOLDER like this:
{has_address} #_LOCATIONADDRESS {/has_address}
If there is an address location, print it.
try this tutorial – http://wp-events-plugin.com/tutorials/creating-conditional-placeholders-for-events/
*replace event with location then try something like
if( is_object($EM_Location) && preg_match('/^has_address/',$condition, $matches) ){
if ( !empty($EM_Location->location_address) ){
$replacement = preg_replace("/\{\/?$condition\}/", '', $match);
}else{
$replacement = '';
}
}