woocommerce_comments()
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() woocommerce comments code WC 9.8.2
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, ) ); }