apply_filters( 'block_bindings_source_value', mixed $value, string $name, array $source_args, WP_Block $block_instance, string $attribute_name )
- Since
- 6.7.0
Filters the output of a block bindings source.
Compatibility
- WordPress
- since 6.7.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
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.
Where this hook fires · 1
wp-includes/class-wp-block-bindings-source.php:98WP_Block_Bindings_Source::get_value()
Source code
* @param mixed $value The computed value for the source. * @param string $name The name of the source. * @param array $source_args Array containing source arguments used to look up the override value, i.e. { "key": "foo" }. * @param WP_Block $block_instance The block instance. * @param string $attribute_name The name of an attribute. */ return apply_filters( 'block_bindings_source_value', $value, $this->name, $source_args, $block_instance, $attribute_name ); } /** * Wakeup magic method. * * @since 6.5.0Changelog
Introduced in 6.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.