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



wp_skip_border_serialization › WordPress Function

Seit5.8.0
Veraltetn/v
wp_skip_border_serialization ( $block_type )
Zugriff:
  • private
Parameter:
  • (WP_Block_type) $block_type Block type.
    Erforderlich: Ja
Gibt zurück:
  • (bool)
Definiert in:
Codex:

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



Quellcode

function wp_skip_border_serialization( $block_type ) {
	$border_support = _wp_array_get( $block_type->supports, array( '__experimentalBorder' ), false );

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