query.get_comment
/ Database / query.get_comment
Title | : | query.get_comment | |||||||||
Purpose | : | Retrieves comment data given a comment ID or comment object. | |||||||||
Syntax | : | [query.get_comment id=”575512″ output=”ARRAY_A” /] | |||||||||
Input Parameters | : | id: (int) Comment ID. output:(string) (Optional) The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which corresponds to a WP_Comment object, an associative array, or a numeric array, respectively. |
|||||||||
Return Value | : | (WP_Comment|array|null) Depends on $output value. | |||||||||
Example 1 | : |
|