Astra_Woocommerce::sale_flash( mixed $markup, string $post, string $product )

Sale bubble flash


Description


Parameters

$markup

(mixed) (Required) HTML markup of the the sale bubble / flash.

$post

(string) (Required) Post.

$product

(string) (Required) Product.


Return

(string) bubble markup.


Source

File: inc/compatibility/woocommerce/class-astra-woocommerce.php

		public function sale_flash( $markup, $post, $product ) {

			/** @psalm-suppress UndefinedFunction  */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
			if ( ( ! is_singular( 'product' ) && astra_is_shop_page_modern_style() ) ) {
				/** @psalm-suppress UndefinedFunction  */ // phpcs:ignore Generic.Commenting.DocComment.MissingShort
				return;
			}

			return $this->get_sale_flash_markup( 'default', $product );
		}

Changelog

Changelog
Version Description
3.9.2 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.