Habari\Comments::by_post_id PHP Method

by_post_id() public static method

Returns all comments for a supplied post ID
public static by_post_id ( integer $post_id ) : array
$post_id integer The id of a post
return array an array of Comment objects for the given post
    public static function by_post_id($post_id)
    {
        return self::get(array('post_id' => $post_id, 'nolimit' => 1, 'orderby' => 'date ASC'));
    }