Skip to content

mc_can_edit_event

github-actions[bot] edited this page Jun 21, 2026 · 5 revisions

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

Clone this wiki locally