Astra_Woocommerce::add_modern_triggers_on_image()
Modern shop page’s triggers on product image.
Description
Source
File: inc/compatibility/woocommerce/class-astra-woocommerce.php
public function add_modern_triggers_on_image() { /** @psalm-suppress UndefinedFunction */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort if ( astra_is_shop_page_modern_style() ) { /** @psalm-suppress InvalidGlobal */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort global $product; $markup = ''; // Sale bubble markup. if ( $product->is_on_sale() ) { $markup .= $this->get_sale_flash_markup( 'default', $product ); } $markup .= $this->modern_add_to_cart(); /** @psalm-suppress TooManyArguments */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort $html = apply_filters( 'astra_addon_shop_cards_buttons_html', $markup, $product ); /** @psalm-suppress TooManyArguments */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
3.9.2 | Introduced. |