Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection
Renderer::is_next_tag_product_collection()
Check if next tag is a PC block.
Method of the class: Renderer{}
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.
Renderer::is_next_tag_product_collection() Renderer::is next tag product collection code WC 9.6.1
private function is_next_tag_product_collection( $p ) { return $p->next_tag( array( 'class_name' => 'wp-block-woocommerce-product-collection' ) ); }