Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 507fb83

Browse files
authored
Update documentation for additionalCartCheckoutInnerBlockTypes filter (#8994)
1 parent 4c2272e commit 507fb83

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/third-party-developers/extensibility/checkout-block/available-filters.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,9 @@ By using the `additionalCartCheckoutInnerBlockTypes` filter it is possible to ad
128128

129129
This filter is called once for each inner block area, so it is possible to be very granular when determining what blocks can be added where. See the [Allowing blocks in specific areas in the Cart and Checkout blocks.](#allowing-blocks-in-specific-areas-in-the-cart-and-checkout-blocks) example for more information.
130130

131-
| Filter name | Description | Return type |
132-
| --------------------------------------- | ---------------------------------------- | ------------- |
133-
| `allowedBlockTypes` | The new array of allowwed block types. | `string[]` |
134-
| ------------------- | ---------------------------------------- | ------------- |
135-
| `additionalCartCheckoutInnerBlockTypes` | The new array of allowwed block types. | `string[]` |
131+
| Filter name | Description | Return type |
132+
| ------------------- | --------------------------------------- | ------------- |
133+
| `additionalCartCheckoutInnerBlockTypes` | The new array of allowed block types. | `string[]` |
136134

137135
## Examples
138136

@@ -186,7 +184,7 @@ In our extension we could register a filter satisfy both of these conditions lik
186184

187185
```tsx
188186
registerCheckoutFilters( 'newsletter-plugin', {
189-
allowedBlockTypes: ( value, extensions, { block } ) => {
187+
additionalCartCheckoutInnerBlockTypes: ( value, extensions, { block } ) => {
190188
// Remove the ability to add `core/separator`
191189
value = value.filter( ( blockName ) => blockName !== 'core/separator' );
192190

0 commit comments

Comments
 (0)