Skip to content

mc_private_event

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

Filter the privacy status of an event.

Auto-generated Example

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

Parameters

  • bool $status true if an event is private, false if it is public.
  • object $event An event object to test.

Returns

bool

Files

apply_filters( 'mc_private_event', $status, $event )

← All Hooks

Clone this wiki locally