Skip to content

mc_private_category

github-actions[bot] edited this page Jun 21, 2026 · 1 revision

Filter the privacy status of an event.

Auto-generated Example

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

Parameters

  • bool $status true if a category is private, false if it is public.
  • object $category A category object to test.

Returns

bool

Files

apply_filters( 'mc_private_category', $status, $category )

← All Hooks

Clone this wiki locally