-
Notifications
You must be signed in to change notification settings - Fork 16
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.
add_filter(
'mc_get_events_sites',
function(
array $site,
array $args
) {
// Your code here.
return $site;
},
10,
2
);-
array$siteArray of sites or a single site if displaying events from a different site on the network. -
array$argsShortcode arguments.
array
apply_filters( 'mc_get_events_sites', $site, $args )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )