Checks whether serialization of the current block’s spacing properties should occur.
Description
See also
Parameters
$block_type
WP_Block_Typerequired- Block type.
Source
function wp_skip_spacing_serialization( $block_type ) {
_deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );
$spacing_support = isset( $block_type->supports['spacing'] )
? $block_type->supports['spacing']
: false;
return is_array( $spacing_support ) &&
array_key_exists( '__experimentalSkipSerialization', $spacing_support ) &&
$spacing_support['__experimentalSkipSerialization'];
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.