mc_event_states_type - joedolson/my-calendar GitHub Wiki

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 $state
    ) {
        // Your code here.
        return $return;
    },
    10,
    2
);

Parameters

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

Files

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

← All Hooks