woocommerce_template_loop_category_link_open()
Insert the opening anchor tag for categories in the loop.
Хуков нет.
Возвращает
null
. Ничего.
Использование
woocommerce_template_loop_category_link_open( $category );
- $category(int|объект|строка) (обязательный)
- Category ID, Object or String.
Код woocommerce_template_loop_category_link_open() woocommerce template loop category link open WC 7.3.0
function woocommerce_template_loop_category_link_open( $category ) { echo '<a href="' . esc_url( get_term_link( $category, 'product_cat' ) ) . '">'; }