mc_api_can_approve_event - joedolson/my-calendar GitHub Wiki
Filter whether the API can approve the event.
Auto-generated Example
add_filter(
'mc_api_can_approve_event',
function(
bool $api_approved,
int $event_author,
array $post
) {
// Your code here.
return $api_approved;
},
10,
3
);
Parameters
bool$api_approvedWhether the API can approve the event. Default false.int$event_authorEvent author ID.array$postSubmitted query.
Returns
bool
Files
apply_filters( 'mc_api_can_approve_event', false, $event_author, $post )