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:
  • 6: .

Description

Checks whether the current block type supports the feature requested.

Related Functions

wp_http_supports, remove_theme_support, get_theme_support, wp_cache_supports, wp_is_https_supported

Top Google Results

User discussions

wpseek mobile