Skip to content

mc_get_events_sites

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

Filter site parameter in queries on a multisite network. Allows a query to show events merged from multiple sites using a single shortcode.

Auto-generated Example

add_filter(
   'mc_get_events_sites',
    function(
        array $site,
        array $args
    ) {
        // Your code here.
        return $site;
    },
    10,
    2
);

Parameters

  • array $site Array of sites or a single site if displaying events from a different site on the network.
  • array $args Shortcode arguments.

Returns

array

Files

apply_filters( 'mc_get_events_sites', $site, $args )

← All Hooks

Clone this wiki locally