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



get_comment_type › WordPress Filter Hooks

Since4.1.0
Deprecatedn/a
apply_filters( 'get_comment_type', $comment->comment_type, $comment->comment_ID, $comment )
Parameters: (3)
  • (string) $comment_type The type of comment, such as 'comment', 'pingback', or 'trackback'.
    Required: Yes
  • (string) $comment_id The comment ID as a numeric string.
    Required: Yes
  • (WP_Comment) $comment The comment object.
    Required: Yes
Defined at:
Codex:

Filters the returned comment type.





Source

return apply_filters( 'get_comment_type', $comment->comment_type, $comment->comment_ID, $comment );