wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_skip_dimensions_serialization › WordPress Function

Since5.9.0
Deprecatedn/a
wp_skip_dimensions_serialization ( $block_type )
Access:
  • private
Parameters:
  • (WP_Block_type) $block_type Block type.
    Required: Yes
Returns:
  • (bool) Whether to serialize spacing support styles & classes.
Defined at:
Codex:

Checks whether serialization of the current block's dimensions properties should occur.



Source

function wp_skip_dimensions_serialization( $block_type ) {
	$dimensions_support = _wp_array_get( $block_type->supports, array( '__experimentalDimensions' ), false );
	return is_array( $dimensions_support ) &&
		array_key_exists( '__experimentalSkipSerialization', $dimensions_support ) &&
		$dimensions_support['__experimentalSkipSerialization'];
}