mc_private_event - joedolson/my-calendar GitHub Wiki
Filter the privacy status of an event.
Auto-generated Example
add_filter(
'mc_private_event',
function(
bool $status,
object $event
) {
// Your code here.
return $status;
},
10,
2
);
Parameters
bool$statustrue if an event is private, false if it is public.object$eventAn event object to test.
Returns
bool
Files
apply_filters( 'mc_private_event', $status, $event )