wphooks.info - get_default_comment_status

get_default_comment_status

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-includes/comment.php:
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
	/**
	 * 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`.
	 */
	return apply_filters( 'get_default_comment_status' , $status, $post_type, $comment_type );
}

/**
 * The date the last comment was modified.
 *
 * @since 1.5.0
 * @since 4.7.0 Replaced caching the modified date in a local static variable
 *              with the Object Cache API.
 *