block_bindings_supported_attributes_(block_type) filter-hookWP 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.

Usage

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.

Changelog

Since 6.9.0 Introduced.

Where the hook is called

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
);

Where the hook is used in WordPress

Usage not found.