2020-05-01 / 4338阅 / 悠然
Retrieves comment data given a comment ID or comment object.
If an object is passed then the comment data will be cached and then returned after being passed through a filter. If the comment is empty, then the global comment variable will be used, if it is set.
(WP_Comment|string|int)
(Optional)
Comment to retrieve.
Default value: null
(string)
(Optional)
The required return type.>WP_Comment object, an associative array, or a numeric array, respectively.
Default value: OBJECT
(WP_Comment|array|null) Depends on $output value.