wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_skip_spacing_serialization › WordPress Function

Seit5.9.0
Veraltet6.0.0
wp_skip_spacing_serialization ( $block_type )
Zugriff:
  • private
Parameter:
  • (WP_Block_Type) $block_type Block type.
    Erforderlich: Ja
Siehe:
Gibt zurück:
  • (bool) Whether to serialize spacing support styles & classes.
Definiert in:
Codex:

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



Quellcode

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'];
}