In WooCommerce there is the number of hooks, we saw the woocommerce cart page hooks & woo-commerce checkout page hooks earlier, here we show you Archive Shop Page hook. You can use them as per your requirements.
The WooCommerce Shop page contains the following hooks:
1. woocommerce_before_main_content
The woocommerce_before_main_content hook is placed at the start of the shop page. This hook is defined in the single-product.php template in WooCommerce.
2. woocommerce_archive_description
The woocommerce_archive_description hook is placed after the ‘Shop’ header title on the shop page. This hook is defined in the archive-product.php template file in WooCommerce.
3. woocommerce_before_shop_loop
The woocommerce_before_shop_loop hook is placed before the products list on the shop page. This hook is defined in the archive-product.php template file in WooCommerce.
4. woocommerce_before_shop_loop_item
The woocommerce_before_shop_loop_item hook is placed on top of each product in the list. This hook is defined in the content-product.php template file in WooCommerce.
5. woocommerce_before_shop_loop_item_title
The woocommerce_before_shop_loop_item_title hook is placed above the product image. This hook is defined in the content-product.php template file in WooCommerce.
6. woocommerce_shop_loop_item_title
The woocommerce_shop_loop_item_title hook is placed above the product name. This hook is defined in the content-product.php template file in WooCommerce.
7. woocommerce_after_shop_loop_item_title
The woocommerce_after_shop_loop_item_title hook is placed below the product name. This hook is defined in the content-product.php template file in WooCommerce.
8. woocommerce_after_shop_loop_item
The woocommerce_after_shop_loop_item hook is placed above the ‘Add to Cart’ name. This hook is defined in the content-product.php template file in WooCommerce.
9. woocommerce_after_shop_loop
The woocommerce_after_shop_loop is placed just below the product list. This hook is defined in the archive-product.php template file in WooCommerce.
10. woocommerce_after_main_content
The woocommerce_after_main_content is placed after all the page content. This hook is defined in the single-product.php template file in WooCommerce.
Here we discuss various Archive Shop Page Hooks defined by WooCommerce. You can use that Archive Shop Page Hooks as per your store requirement. If you need any help, do leave a comment below.