mc_can_edit_event - joedolson/my-calendar GitHub Wiki

Filter permissions to edit an event.

Auto-generated Example

add_filter(
   'mc_can_edit_event',
    function(
        bool $return,
        int $event_id
    ) {
        // Your code here.
        return $return;
    },
    10,
    2
);

Parameters

  • bool $return True if user can edit this event.
  • int $event_id The ID of the current event.

Returns

bool

Files

apply_filters( 'mc_can_edit_event', $return, $event_id )

← All Hooks