Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action('em_event_output_condition', 'my_em_custom_event_output_condition', 100, 4);
- function my_em_custom_event_output_condition($replacement, $condition, $match, $EM_Event){
- if( is_object($EM_Event) && preg_match('/^is_recurrence$/',$condition, $matches) ){
- if( $EM_Event->is_recurrence( true ) ){
- $replacement = preg_replace("/\{\/?$condition\}/", '', $match);
- }else{
- $replacement = '';
- }
- }
- return $replacement;
- }
Advertisement
Add Comment
Please, Sign In to add comment