Filter hook 'get_default_comment_status'

in WP Core File wp-includes/comment.php at line 315

Description

Filters the default comment status for the given post type.

Occurrences

Filename Line Number
wp-includes/comment.php 315

Parameters

Type Name Description
string $status Default status for the given post type, either 'open' or 'closed'.
string $post_type Post type. Default is `post`.
string $comment_type Type of comment. Default is `comment`.

PHP Doc

/**
	 * Filters the default comment status for the given post type.
	 *
	 * @since 4.3.0
	 *
	 * @param string $status       Default status for the given post type,
	 *                             either 'open' or 'closed'.
	 * @param string $post_type    Post type. Default is `post`.
	 * @param string $comment_type Type of comment. Default is `comment`.
	 */