block_bindings_supported_attributes_(block_type) хук-фильтрWP 6.9.0

Filters the supported block attributes for block bindings.

The dynamic portion of the hook name, $block_type, refers to the block type whose attributes are being filtered.

Использование

add_filter( 'block_bindings_supported_attributes_(block_type)', 'wp_kama_block_bindings_supported_attributes_type_filter' );

/**
 * Function for `block_bindings_supported_attributes_(block_type)` filter-hook.
 * 
 * @param string[] $supported_block_attributes The block's attributes that are supported by block bindings.
 *
 * @return string[]
 */
function wp_kama_block_bindings_supported_attributes_type_filter( $supported_block_attributes ){

	// filter...
	return $supported_block_attributes;
}
$supported_block_attributes(string[])
The block's attributes that are supported by block bindings.

Список изменений

С версии 6.9.0 Введена.

Где вызывается хук

get_block_bindings_supported_attributes()
block_bindings_supported_attributes_(block_type)
wp-includes/block-bindings.php 181-184
$supported_block_attributes = apply_filters(
	"block_bindings_supported_attributes_{$block_type}",
	$supported_block_attributes
);

Где используется хук в WordPress

Использование не найдено.