Cart_Notices::cart_notices_allowed_block_types( array $allowed_block_types, $post )
Limit the allowed blocks in this post type just to cart notice block.
Parameters
- $allowed_block_types
-
(Required) Allowed block types.
-
(Required) | WP_Block_Editor_Context $post Current post data.
Return
(string[])
Source
File: includes/modules/woocommerce_booster/cart_notices/cart_notices.php
Expand full source code Collapse full source code View on Github