WordPress Version: 5.8
/**
* Checks whether the current block type supports the spacing feature requested.
*
* @since 5.8.0
* @access private
*
* @param WP_Block_Type $block_type Block type to check for support.
* @param string $feature Name of the feature to check support for.
* @param mixed $default Fallback value for feature support, defaults to false.
*
* @return boolean Whether or not the feature is supported.
*/
function wp_has_spacing_feature_support($block_type, $feature, $default = false)
{
// Check if the specific feature has been opted into individually
// via nested flag under `spacing`.
return block_has_support($block_type, array('spacing', $feature), $default);
}