apply_filters( ‘close_comments_for_post_types’, string[] $post_types )

In this article

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

Parameters

$post_typesstring[]
An array of post type names.

Source

$post_types = apply_filters( 'close_comments_for_post_types', array( 'post' ) );

Changelog

VersionDescription
3.2.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.