block_has_support
block_has_support ( $block_type, $feature, $default_value = false )
Parameters:- (WP_Block_Type) block_type Block type to check for support.
- (string|array) feature Feature slug, or path to a specific feature to check support for.
- (mixed) default_value Optional. Fallback value for feature support. Default false.
Returns:- (bool) Whether the feature is supported.
Defined at:Change Log: - Introduced in WordPress: 5.8.0
- Deprecated in WordPress: —
Description
Checks whether the current block type supports the feature requested.