apply_filters( ‘get_default_comment_status’, string $status, string $post_type, string $comment_type )

In this article

Filters the default comment status for the given post type.

Parameters

$statusstring
Default status for the given post type, either 'open' or 'closed'.
$post_typestring
Post type. Default is post.
$comment_typestring
Type of comment. Default is comment.

Source

return apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type );

Changelog

VersionDescription
4.3.0Introduced.

User Contributed Notes

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