WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about close_comments_for_post_types

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/comment.php apply_filters 3367 /**
* Filters the list of post types to automatically close comments for.
*
* @since 3.2.0
*
* @param string[] $post_types An array of post type names.
*/
wp-includes/comment.php apply_filters 3412 /**
* Closes comments on an old post. Hooked to comments_open and pings_open.
*
* @since 2.7.0
* @access private
*
* @param bool $open Comments open or closed.
* @param int $post_id Post ID.
* @return bool $open
*/

Hook Parameters

Parameter Type Name Description
string[] $post_types An array of post type names.
string[] $post_types An array of post type names.