Woocommerce latest review

I am trying to get the latest comment / review on any product on my test page, so far i am treating it as a post, and got something like this :

    $args = array ('post_type' => 'product');
    $comments = get_comments( $args );
    wp_list_comments( array( 'callback' => 'woocommerce_comments' ), $comments);

<?php get_comments( $args ); ?>

Any help is much appreciated, thanks

Source: wordpress

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.