block_has_support


block_has_support ( $block_type, $feature, $default = false )

Parameters:
  • (WP_Block_Type) block_type Block type to check for support.
  • (string) feature Name of the feature to check support for.
  • (mixed) default Optional. Fallback value for feature support. Default false.
Returns:
  • (bool) Whether the feature is supported.
Defined at:

Description

Checks whether the current block type supports the feature requested.

Related Functions

wp_http_supports, get_theme_support, remove_theme_support, wp_is_https_supported, post_type_supports

Top Google Results

User discussions

wpseek mobile