review.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * Review Comments Template
  4. *
  5. * Closing li is left out on purpose!.
  6. *
  7. * This template can be overridden by copying it to yourtheme/woocommerce/single-product/review.php.
  8. *
  9. * HOWEVER, on occasion WooCommerce will need to update template files and you
  10. * (the theme developer) will need to copy the new files to your theme to
  11. * maintain compatibility. We try to do this as little as possible, but it does
  12. * happen. When this occurs the version of the template file will be bumped and
  13. * the readme will list any important changes.
  14. *
  15. * @see https://docs.woocommerce.com/document/template-structure/
  16. * @author WooThemes
  17. * @package WooCommerce/Templates
  18. * @version 2.6.0
  19. */
  20. if ( ! defined( 'ABSPATH' ) ) {
  21. exit; // Exit if accessed directly
  22. }
  23. ?>
  24. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  25. <div id="comment-<?php comment_ID(); ?>" class="comment_container">
  26. <?php
  27. /**
  28. * The woocommerce_review_before hook
  29. *
  30. * @hooked woocommerce_review_display_gravatar - 10
  31. */
  32. do_action( 'woocommerce_review_before', $comment );
  33. ?>
  34. <div class="comment-text">
  35. <?php
  36. /**
  37. * The woocommerce_review_before_comment_meta hook.
  38. *
  39. * @hooked woocommerce_review_display_rating - 10
  40. */
  41. do_action( 'woocommerce_review_before_comment_meta', $comment );
  42. /**
  43. * The woocommerce_review_meta hook.
  44. *
  45. * @hooked woocommerce_review_display_meta - 10
  46. * @hooked WC_Structured_Data::generate_review_data() - 20
  47. */
  48. do_action( 'woocommerce_review_meta', $comment );
  49. do_action( 'woocommerce_review_before_comment_text', $comment );
  50. /**
  51. * The woocommerce_review_comment_text hook
  52. *
  53. * @hooked woocommerce_review_display_comment_text - 10
  54. */
  55. do_action( 'woocommerce_review_comment_text', $comment );
  56. do_action( 'woocommerce_review_after_comment_text', $comment ); ?>
  57. </div>
  58. </div>