Core Function
View Source on Trac ↗ wp_should_skip_block_supports_serialization()
wp_should_skip_block_supports_serialization( mixed $block_type, mixed $feature_set, mixed $feature = null ) Checks whether serialization of the current block's supported properties
Parameters 2 required
| Name / Type | Description |
|---|---|
| $block_type WP_Block_Type | Block type. Required |
| $feature_set string | Name of block support feature set.. Required |
| $feature string | Optional name of individual feature to check. |
Return Value
(bool)
Whether to serialize block support styles & classes.
Function Information
Since Version
6.0.0
Source File
wp-includes/block-supports/utils.php
Advertisement