Hook comments for each action on template files

As i'm working with my theme i have found difficult to keep track of all actions and hooks, i think all actions should be commented with their respective hooks like you have already done on archive-product.php
This commit is contained in:
Theme.al 2017-04-20 09:48:36 +02:00 committed by GitHub
parent e208e35e33
commit 79d3291ba5
1 changed files with 9 additions and 1 deletions

View File

@ -154,7 +154,15 @@ do_action( 'woocommerce_before_cart' ); ?>
</form>
<div class="cart-collaterals">
<?php do_action( 'woocommerce_cart_collaterals' ); ?>
<?php
/**
* woocommerce_cart_collaterals hook.
*
* @hooked woocommerce_cross_sell_display
* @hooked woocommerce_cart_totals - 10
*/
do_action( 'woocommerce_cart_collaterals' );
?>
</div>
<?php do_action( 'woocommerce_after_cart' ); ?>