eo_recurs
since 1.0.0
eo_recurs( $post_id )
Returns true if event recurs or false if it is a one time event.
Examples
Display a different message depending on whether the event recurs or not, inside the loop.
<?php if( eo_recurs() ){
echo 'This event recurs';
}else{
echo 'This event is a one-time event';
}
?>
Outside the loop, for event with ID 7:
<?php if( eo_recurs(7) ){
echo 'This event recurs';
}else{
echo 'This event is a one-time event';
}
?>
Parameters
int
|
$post_id |
The event (post) ID. Uses current event if empty.
|
Return value
bool
|
true if event a recurring event
|
Changelog