Automattic\WooCommerce\Blocks\BlockTypes

ProductCollection::is_next_tag_product_collection()privateWC 1.0

Check if next tag is a PC block.

Method of the class: ProductCollection{}

No Hooks.

Return

true|false. Answer if PC block is available.

Usage

// private - for code of main (parent) class only
$result = $this->is_next_tag_product_collection( $p );
$p(WP_HTML_Tag_processor) (required)
Initial tag processor.

ProductCollection::is_next_tag_product_collection() code WC 9.4.2

private function is_next_tag_product_collection( $p ) {
	return $p->next_tag( array( 'class_name' => 'wp-block-woocommerce-product-collection' ) );
}