Skip to content

mc_display_location_events

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

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 $args Array of upcoming events arguments.
  • object $location Location object.

Returns

array

Files

apply_filters( 'mc_display_location_events', $args, $location )

← All Hooks

Clone this wiki locally