woocommerce_comments

Output the Review comments template.

Description

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

Parameters (3)

0. $comment (WP_Comment)
The comment.
1. $args (array)
The args.
2. $depth (int)
The depth.

Usage

  1. if ( !function_exists( 'woocommerce_comments' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4. // The comment. 
  5. $comment = null; 
  6.  
  7. // The args. 
  8. $args = array(); 
  9.  
  10. // The depth. 
  11. $depth = -1; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = woocommerce_comments($comment, $args, $depth); 
  15.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_comments( $comment, $args, $depth ) { 
  2. $GLOBALS['comment'] = $comment; 
  3. wc_get_template( 'single-product/review.php', array( 'comment' => $comment, 'args' => $args, 'depth' => $depth ) );