simple question on better method- get_comments() VS WP_Comment_Query:
Which is a better method to echo out comment content (as far as speed, security)?
in both cases:
$args = array(
'meta_value' => 'tagline111'
);
This:
$comments = get_comments( $args );
foreach( $comments as $comment ) }
echo $comment->comment_content;
}
OR
$comments_query = new WP_Comment_Query;
$comments = $comments_query->query( $args );
foreach ( $comments as $comment ) {
echo '<p>' . $comment->comment_content . '</p>';
}