Skip to content

mc_event_states_type

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

Filter the display conditions of an event status.

Events can either be public; private; or hidden. Public events are visible to all; private events are visible to logged-in users; and hidden events are not visible.

Auto-generated Example

add_filter(
   'mc_event_states_type',
    function(
        string $return,
        int $states
    ) {
        // Your code here.
        return $return;
    },
    10,
    2
);

Parameters

  • string $return Type for the current status.
  • int $states An integer representation of a status.

Files

apply_filters( 'mc_event_states_type', $return, $states )

← All Hooks

Clone this wiki locally