Skip to content

mc_api_can_edit_event

Joe Dolson edited this page May 15, 2026 · 5 revisions

Filter permissions to edit an event via the My Calendar Pro REST API.

Auto-generated Example

add_filter(
   'mc_api_can_edit_event',
    function(
        {bool} $return,
        {object|int} $event
    ) {
        // Your code here.
        return $return;
    },
    10,
    2
);

Parameters

  • {bool} $return True if API user can edit this event.
  • {object|int} $event The ID of the current event or an event object.

Returns

{bool}

Files

apply_filters( 'mc_api_can_edit_event', false, $event )

← All Hooks

Clone this wiki locally