On this page
wp_skip_border_serialization( WP_Block_Type $block_type ): bool
This function has been deprecated. Use wp_should_skip_block_supports_serialization() instead.
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness. Use wp_should_skip_block_supports_serialization() instead.
Checks whether serialization of the current block’s border properties should occur.
Description
See also
Parameters
$block_typeWP_Block_Type Required-
Block type.
Return
bool Whether serialization of the current block's border properties should occur.
Source
File: wp-includes/deprecated.php. View all references
function wp_skip_border_serialization( $block_type ) {
_deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );
$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'];
}
Related
Uses
| Uses | Description |
|---|---|
| _wp_array_get() wp-includes/functions.php | Accesses an array in depth based on a path of keys. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_skip_border_serialization