wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
wp_skip_dimensions_serialization is private and should not be used in themes or plugins directly.
wp_skip_dimensions_serialization › WordPress Function
Od5.9.0
Przestarzały6.0.0
› wp_skip_dimensions_serialization ( $block_type )
| Dostęp: |
|
| Parametry: |
|
| Zobacz: | |
| Powrót: |
|
| Zdefiniowane na: |
|
| Codex: |
Checks whether serialization of the current block's dimensions properties should occur.
Źródło
function wp_skip_dimensions_serialization( $block_type ) {
_deprecated_function( __FUNCTION__, '6.0.0', 'wp_should_skip_block_supports_serialization()' );
$dimensions_support = $block_type->supports['__experimentalDimensions'] ?? false;
return is_array( $dimensions_support ) &&
array_key_exists( '__experimentalSkipSerialization', $dimensions_support ) &&
$dimensions_support['__experimentalSkipSerialization'];
}