Skip to content

mc_autoclose_comments

github-actions[bot] edited this page Jun 9, 2026 · 5 revisions

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

  • bool bool $close 'true' to close comments. Other variable names: $true
  • WP_Post $post Post object.

Returns

bool

Files

apply_filters( 'mc_autoclose_comments', true, $post )

← All Hooks

Clone this wiki locally