Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection
Renderer::handle_rendering
Handle the rendering of the block.
Method of the class: Renderer{}
No Hooks.
Returns
String.
Usage
$Renderer = new Renderer(); $Renderer->handle_rendering( $block_content, $block );
- $block_content(string) (required)
- The block content about to be rendered.
- $block(array) (required)
- The block being rendered.
Renderer::handle_rendering() Renderer::handle rendering code WC 10.5.0
public function handle_rendering( $block_content, $block ) {
if ( $this->should_prevent_render() ) {
return ''; // Prevent rendering.
}
// Reset the render state for the next render.
$this->reset_render_state();
return $this->enhance_product_collection_with_interactivity( $block_content, $block );
}