wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_skip_border_serialization › WordPress Function

Od5.8.0
Przestarzały6.0.0
› wp_skip_border_serialization ( $block_type )
Dostęp:
  • private
Parametry:
  • (WP_Block_Type) $block_type Block type.
    Wymagane: Tak
Zobacz:
Powrót:
  • (bool) Whether serialization of the current block's border properties
    should occur.
Zdefiniowane na:
Codex:

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



Źródło

function wp_skip_border_serialization( $block_type ) {
	_deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );

	$border_support = $block_type->supports['__experimentalBorder'] ?? false;

	return is_array( $border_support ) &&
		array_key_exists( '__experimentalSkipSerialization', $border_support ) &&
		$border_support['__experimentalSkipSerialization'];
}