Skip to content

mc_filter_event_controls

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter array of controls shown on event editor.

Auto-generated Example

add_filter(
   'mc_filter_event_controls',
    function(
        array $controls,
        string $mode,
        object $event,
        string $position
    ) {
        // Your code here.
        return $controls;
    },
    10,
    4
);

Parameters

  • array $controls Array of HTML strings to output in header and footer of event editor.
  • string $mode Context of event editing page.
  • object $event Event data.
  • string $position location of form.

Returns

array

Files

apply_filters( 'mc_filter_event_controls', $controls, $mode, $event, $position = 'header' )

← All Hooks

Clone this wiki locally