WordPress at Your Fingertips
function is not described

wp_skip_border_serialization() WP 5.8.0

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

No Hooks.

Return

true|false.

Usage

wp_skip_border_serialization( $block_type );
$block_type(WP_Block_Type) (required)
Block type.

Changelog

Since 5.8.0 Introduced.

Code of wp_skip_border_serialization() WP 5.8.1

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