mc_display_location_events - joedolson/my-calendar GitHub Wiki
Filter the arguments used to generate upcoming events for a location. Default ['ltype' => 'name', 'lvalue' => {location_label}, 'type' => 'events', 'after' => 5, 'before' => 0, 'fallback' => 'No events currently scheduled at this location.'].
Auto-generated Example
add_filter(
'mc_display_location_events',
function(
array $args,
object $location
) {
// Your code here.
return $args;
},
10,
2
);
Parameters
array$argsArray of upcoming events arguments.object$locationLocation object.
Returns
array
Files
apply_filters( 'mc_display_location_events', $args, $location )