-
Notifications
You must be signed in to change notification settings - Fork 16
mc_can_edit_event
github-actions[bot] edited this page Jun 21, 2026
·
5 revisions
Filter permissions to edit an event.
add_filter(
'mc_can_edit_event',
function(
bool $return,
int $event_id
) {
// Your code here.
return $return;
},
10,
2
);-
bool$returnTrue if user can edit this event. -
int$event_idThe ID of the current event.
bool
apply_filters( 'mc_can_edit_event', $return, $event_id )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 )