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_approved Whether the API can approve the event. Default false.
  • int $event_author Event author ID.
  • array $post Submitted query.

Returns

bool

Files

apply_filters( 'mc_api_can_approve_event', false, $event_author, $post )

← All Hooks