wpseek.com
A WordPress-centric search engine for devs and theme authors



get_default_comment_status › WordPress Filter Hooks

Since4.3.0
Deprecatedn/a
apply_filters( 'get_default_comment_status', $status, $post_type, $comment_type )
Parameters: (3)
  • (string) $status Default status for the given post type, either 'open' or 'closed'.
    Required: Yes
  • (string) $post_type Post type. Default is `post`.
    Required: Yes
  • (string) $comment_type Type of comment. Default is `comment`.
    Required: Yes
Defined at:
Codex:

Filters the default comment status for the given post type.





Source

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