woocommerce_template_loop_category_link_open

Insert the opening anchor tag for categories in the loop.

Description

woocommerce_template_loop_category_link_open( $category ); 

Parameters (1)

0. $category
The category.

Usage

  1. if ( !function_exists( 'woocommerce_template_loop_category_link_open' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-template-functions.php'; 
  3.  
  4. // The category. 
  5. $category = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_template_loop_category_link_open($category); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-template-functions.php  
  1. function woocommerce_template_loop_category_link_open( $category ) { 
  2. echo '<a href="' . get_term_link( $category, 'product_cat' ) . '">';