wp_has_border_feature_support


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

Access:
  • private
Parameters:
  • (WP_Block_Type) block_type Block type to check for support.
  • (string) feature Name of the feature to check support for.
  • (mixed) default Fallback value for feature support, defaults to false.
Returns:
  • (bool) Whether or not the feature is supported.
Defined at:

Description

Checks whether the current block type supports the border feature requested.If the `__experimentalBorder` support flag is a boolean `true` all border support features are available. Otherwise, the specific feature's support flag nested under `experimentalBorder` must be enabled for the feature to be opted into.

Related Functions

wp_has_spacing_feature_support, wp_apply_border_support, wp_register_border_support, wp_render_duotone_support, wp_render_elements_support

Top Google Results

User discussions

wpseek mobile