-
Notifications
You must be signed in to change notification settings - Fork 16
mc_api_can_edit_event
Joe Dolson edited this page May 15, 2026
·
5 revisions
Filter permissions to edit an event via the My Calendar Pro REST API.
add_filter(
'mc_api_can_edit_event',
function(
{bool} $return,
{object|int} $event
) {
// Your code here.
return $return;
},
10,
2
);-
{bool}$returnTrue if API user can edit this event. -
{object|int}$eventThe ID of the current event or an event object.
{bool}
apply_filters( 'mc_api_can_edit_event', false, $event )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 )