WPDev.one
Core Function
View Source on Trac ↗

_close_comments_for_old_post()

_close_comments_for_old_post( mixed $open, mixed $post_id )

Closes comments on an old post. Hooked to comments_open and pings_open.

Parameters 2 required

Name / Type Description
$open
bool

Comments open or closed.

Required
$post_id
int

Post ID.

Required

Return Value

(bool)
$open

Function Information

Since Version
2.7.0
Source File
wp-includes/comment.php
Advertisement