Astra_Woocommerce::astra_woo_woocommerce_template_product_title( string $product_type )
Show the product title in the product loop.
Description
Parameters
- $product_type
-
(string) (Required) product type.
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function astra_woo_woocommerce_template_product_title( $product_type ) { if ( 'quick-view' === $product_type ) { /** @psalm-suppress PossiblyFalseArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo '<a href="' . esc_url( get_the_permalink() ) . '" class="ast-loop-product__link">'; /** @psalm-suppress PossiblyFalseArgument */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort } woocommerce_template_single_title(); if ( 'quick-view' === $product_type ) { echo '</a>'; } }
Expand full source code Collapse full source code View on Trac