woocommerce_comments()WC 1.0

Output the Review comments template.

No Hooks.

Return

null. Nothing (null).

Usage

woocommerce_comments( $comment, $args, $depth );
$comment(WP_Comment) (required)
Comment object.
$args(array) (required)
Arguments.
$depth(int) (required)
Depth.

woocommerce_comments() code WC 8.6.1

function woocommerce_comments( $comment, $args, $depth ) {
	// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
	$GLOBALS['comment'] = $comment;
	wc_get_template(
		'single-product/review.php',
		array(
			'comment' => $comment,
			'args'    => $args,
			'depth'   => $depth,
		)
	);
}