W3cubDocs

/WordPress

apply_filters( 'close_comments_for_post_types', string[] $post_types )

Filters the list of post types to automatically close comments for.

Parameters

$post_types

(string[]) An array of post type names.

Source

File: wp-includes/comment.php

View on Trac

Changelog

Version Description
3.2.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/close_comments_for_post_types