wp-includes/blocks.php:2557Checks whether the current block type supports the feature requested.
$block_typeWP_Block_Type$featurestring|array$default_valuemixedoptionalfalseboolfunction block_has_support( $block_type, $feature, $default_value = false ) { $block_support = $default_value; if ( $block_type instanceof WP_Block_Type ) { if ( is_array( $feature ) && count( $feature ) === 1 ) { $feature = $feature[0]; } if ( is_array( $feature ) ) { $block_support = _wp_array_get( $block_type->supports, $feature, $default_value ); } elseif ( isset( $block_type->supports[ $feature ] ) ) { $block_support = $block_type->supports[ $feature ]; } } return true === $block_support || is_array( $block_support );}Introduced in 5.8.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$block_type retyped from WP_Block_Type to WP_Block_Type|null.verified against sourcesrc/wp-includes/blocks.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.