Automattic\WooCommerce\Blocks\BlockTypes\ProductCollection
Renderer::should_handle_frontend_rendering
Check if the renderer should add frontend-only interactivity hooks.
Method of the class: Renderer{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->should_handle_frontend_rendering();
Renderer::should_handle_frontend_rendering() Renderer::should handle frontend rendering code WC 11.0.0
private function should_handle_frontend_rendering() {
return ! is_admin() && ! \WC()->is_rest_api_request();
}