-
Notifications
You must be signed in to change notification settings - Fork 17
mc_api_can_approve_event
github-actions[bot] edited this page Sep 16, 2026
·
1 revision
Filter whether the API can approve the event.
add_filter(
'mc_api_can_approve_event',
function(
bool $api_approved,
int $event_author,
array $post
) {
// Your code here.
return $api_approved;
},
10,
3
);-
bool$api_approvedWhether the API can approve the event. Default false. -
int$event_authorEvent author ID. -
array$postSubmitted query.
bool
apply_filters( 'mc_api_can_approve_event', false, $event_author, $post )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 )