get_default_comment_status

Advertisement

Summery Summery

Filters the default comment status for the given post type.

Syntax Syntax

apply_filters( 'get_default_comment_status', string $status, string $post_type, string $comment_type )

Parameters Parameters

$status

(string) Default status for the given post type, either 'open' or 'closed'.

$post_type

(string) Post type. Default is post.

$comment_type

(string) Type of comment. Default is comment.

Source Source

File: wp-includes/comment.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.3.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.