woocommerce_comments( WP_Comment $comment, array $args, int $depth )

Output the Review comments template.


Description Description


Parameters Parameters

$comment

(Required) Comment object.

$args

(Required) Arguments.

$depth

(Required) Depth.


Top ↑

Source Source

File: includes/wc-template-functions.php

	function woocommerce_comments( $comment, $args, $depth ) {
		$GLOBALS['comment'] = $comment; // WPCS: override ok.
		wc_get_template(
			'single-product/review.php',
			array(
				'comment' => $comment,
				'args'    => $args,
				'depth'   => $depth,
			)
		);
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.