W3cubDocs

/WordPress

apply_filters( ‘block_bindings_source_value’, mixed $value, string $name, array $source_args, WP_Block $block_instance, string $attribute_name )

Filters the output of a block bindings source.

Parameters

$valuemixed
The computed value for the source.
$namestring
The name of the source.
$source_argsarray
Array containing source arguments used to look up the override value, i.e. { "key": "foo" }.
$block_instanceWP_Block
The block instance.
$attribute_namestring
The name of an attribute.

Source

return apply_filters( 'block_bindings_source_value', $value, $this->name, $source_args, $block_instance, $attribute_name );

Changelog

Version Description
6.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/block_bindings_source_value