Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection

Renderer::add_store_notices_fallbackprivateWC 1.0

Add a fallback store notices div to the block content.

Method of the class: Renderer{}

No Hooks.

Returns

String. The updated block content.

Usage

// private - for code of main (parent) class only
$result = $this->add_store_notices_fallback( $block_content );
$block_content(string) (required)
The block content.

Renderer::add_store_notices_fallback() code WC 9.8.5

private function add_store_notices_fallback( $block_content ) {
	return preg_replace( '/(<div[^>]+>)/', '$1' . $this->render_interactivity_notices_region(), $block_content, 1 );
}