Update Compatibility Layer docs (#48456)
* Update compatibility layer docs to mention Product Collection * Add changelog * Update plugins/woocommerce-blocks/docs/internal-developers/blockified-templates/compatibility-layer.md Improve my English Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com> --------- Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
This commit is contained in:
parent
1f9b130357
commit
d49db0486e
|
@ -17,7 +17,7 @@ Furthermore, it is possible to disable the compatibility layer via the hook: [`w
|
|||
|
||||
## Archive Product Templates - [ArchiveProductTemplatesCompatibility](https://github.com/woocommerce/woocommerce-blocks/blob/trunk/src/Templates/ArchiveProductTemplatesCompatibility.php)
|
||||
|
||||
The compatibility is built around the Products block because the loop is the main element of archive templates and hooks are placed inside and around the loop. The Compatibility Layer injects custom attributes for the Products block that inherits query from the template and its inner blocks.
|
||||
The compatibility is built around the Product Collection and Products (Beta) blocks because the loop is the main element of archive templates and hooks are placed inside and around the loop. The Compatibility Layer injects custom attributes for the Product Collection and Products (Beta) blocks that **inherit query from the template** and their inner blocks.
|
||||
|
||||
The following table shows where the hooks are injected into the page.
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
|
||||
Docs: update documentation regarding Compatibility Layer
|
Loading…
Reference in New Issue