Support » Plugin: WooCommerce » Hard coded html outside of functions

  • Out of interest why do you do things like this (in content-product.php):

    <li <?php post_class(); ?>>

    * woocommerce_before_shop_loop_item hook.
    * @hooked woocommerce_template_loop_product_link_open – 10
    do_action( ‘woocommerce_before_shop_loop_item’ );

    Why is the li not within a function using that hook? Which would make it stupendously easier to change if we want rather than having to make our copy of an entire template file just to change one small thing.

    It happens in many other places as well.

  • The topic ‘Hard coded html outside of functions’ is closed to new replies.