mc_private_category - joedolson/my-calendar GitHub Wiki
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$statustrue if a category is private, false if it is public.object$categoryA category object to test.
Returns
bool
Files
apply_filters( 'mc_private_category', $status, $category )