block_bindings_supported_attributes filter-hookWP 6.9.0

Filters the supported block attributes for block bindings.

Usage

add_filter( 'block_bindings_supported_attributes', 'wp_kama_block_bindings_supported_attributes_filter', 10, 2 );

/**
 * Function for `block_bindings_supported_attributes` filter-hook.
 * 
 * @param string[] $supported_block_attributes The block's attributes that are supported by block bindings.
 * @param string   $block_type                 The block type whose attributes are being filtered.
 *
 * @return string[]
 */
function wp_kama_block_bindings_supported_attributes_filter( $supported_block_attributes, $block_type ){

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

Changelog

Since 6.9.0 Introduced.

Where the hook is called

get_block_bindings_supported_attributes()
block_bindings_supported_attributes
wp-includes/block-bindings.php 165-169
$supported_block_attributes = apply_filters(
	'block_bindings_supported_attributes',
	$supported_block_attributes,
	$block_type
);

Where the hook is used in WordPress

Usage not found.