This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Product Query: custom implementation of inherit query from template #6863
Labels
block-type: product-grid
Issues related to/affecting all product-grid type blocks.
focus: FSE
Work related to prepare WooCommerce for FSE.
type: enhancement
The issue is a request for an enhancement.
As we want to minimize changes we do in Gutenberg, we need to override the setting “Inherit Query from Template” in our block variation because, in the current implementation of the
PostTemplate
, Gutenberg uses the global$wp_query
and our current proposal would not be applicable without a big refactor.Instead, our Product Query block will always use the filter we introduce above, and we'll handle the global
$wp_query
on our side.We need to implement three functionalities in the long term:
Depends on: sunyatasattva/gutenberg#2
The text was updated successfully, but these errors were encountered: