WPDev.one
Core Function
View Source on Trac ↗

wp_has_border_feature_support()

wp_has_border_feature_support( mixed $block_type, mixed $feature, mixed $default_value = false )

Checks whether the current block type supports the border feature requested.

Parameters 2 required

Name / Type Description
$block_type
WP_Block_Type

Block type to check for support.

Required
$feature
string

Name of the feature to check support for.

Required
$default_value
mixed

Fallback value for feature support, defaults to false.

Return Value

(bool)
Whether the feature is supported.

Function Information

Since Version
5.8.0
Source File
wp-includes/block-supports/border.php
Advertisement