mc_autoclose_comments - joedolson/my-calendar GitHub Wiki
Filter whether event posts should automatically close comments. Default 'true'.
Auto-generated Example
add_filter(
'mc_autoclose_comments',
function(
bool bool,
WP_Post $post
) {
// Your code here.
return bool;
},
10,
2
);
Parameters
boolbool$close 'true' to close comments. Other variable names:$trueWP_Post$postPost object.
Returns
bool
Files
apply_filters( 'mc_autoclose_comments', true, $post )