Skip to content

mc_user_can_see_private_events

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

Filter whether an event is visible to the current user.

Auto-generated Example

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

Parameters

  • bool $can_see 'true' if the event should be shown. Other variable names: $is_user_logged_in
  • object $event Event object.

Returns

bool

Files

apply_filters( 'mc_user_can_see_private_events', is_user_logged_in(), $event )

← All Hooks

Clone this wiki locally