WordPress at Your Fingertips
function is not described

wp_has_spacing_feature_support() WP 5.8.0

Checks whether the current block type supports the spacing feature requested.

No Hooks.


true|false. Whether or not the feature is supported.


wp_has_spacing_feature_support( $block_type, $feature, $default );
$block_type(WP_Block_Type) (required)
Block type to check for support.
$feature(string) (required)
Name of the feature to check support for.
Fallback value for feature support.
Default: false


Since 5.8.0 Introduced.

Code of wp_has_spacing_feature_support() WP 5.8.1

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 );