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



wp_skip_border_serialization › WordPress Function

Since5.8.0
Deprecatedn/a
wp_skip_border_serialization ( $block_type )
Access:
  • private
Parameters:
  • (WP_Block_type) $block_type Block type.
    Required: Yes
Returns:
  • (bool)
Defined at:
Codex:

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



Source

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