-
Notifications
You must be signed in to change notification settings - Fork 16
mc_widget_defaults
github-actions[bot] edited this page Jun 3, 2026
·
4 revisions
Customize the default values used for Upcoming and Today's events widgets.
add_filter(
'mc_widget_defaults',
function( array ) {
// Your code here.
return array;
}
);-
array$defaults Array of values used to set up upcoming and today's events lists in widgets. Other variable names:$defaults
array
apply_filters( 'mc_widget_defaults', $defaults )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 )