content-product_cat.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * The template for displaying product category thumbnails within loops
  4. *
  5. * This template can be overridden by copying it to yourtheme/woocommerce/content-product_cat.php.
  6. *
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you
  8. * (the theme developer) will need to copy the new files to your theme to
  9. * maintain compatibility. We try to do this as little as possible, but it does
  10. * happen. When this occurs the version of the template file will be bumped and
  11. * the readme will list any important changes.
  12. *
  13. * @see https://docs.woocommerce.com/document/template-structure/
  14. * @author WooThemes
  15. * @package WooCommerce/Templates
  16. * @version 2.6.1
  17. */
  18. if ( ! defined( 'ABSPATH' ) ) {
  19. exit;
  20. }
  21. ?>
  22. <li <?php wc_product_cat_class( '', $category ); ?>>
  23. <?php
  24. /**
  25. * woocommerce_before_subcategory hook.
  26. *
  27. * @hooked woocommerce_template_loop_category_link_open - 10
  28. */
  29. do_action( 'woocommerce_before_subcategory', $category );
  30. /**
  31. * woocommerce_before_subcategory_title hook.
  32. *
  33. * @hooked woocommerce_subcategory_thumbnail - 10
  34. */
  35. do_action( 'woocommerce_before_subcategory_title', $category );
  36. /**
  37. * woocommerce_shop_loop_subcategory_title hook.
  38. *
  39. * @hooked woocommerce_template_loop_category_title - 10
  40. */
  41. do_action( 'woocommerce_shop_loop_subcategory_title', $category );
  42. /**
  43. * woocommerce_after_subcategory_title hook.
  44. */
  45. do_action( 'woocommerce_after_subcategory_title', $category );
  46. /**
  47. * woocommerce_after_subcategory hook.
  48. *
  49. * @hooked woocommerce_template_loop_category_link_close - 10
  50. */
  51. do_action( 'woocommerce_after_subcategory', $category ); ?>
  52. </li>