Title: block_bindings_source_value
Published: November 13, 2024
Last modified: August 20, 2026

---

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

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#changelog)

Filters the output of a block bindings source.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#parameters)󠁿

 `$value`mixed

The computed value for the source.

`$name`string

The name of the source.

`$source_args`array

Array containing source arguments used to look up the override value, i.e. { “key”:“
foo” }.

`$block_instance`[WP_Block](https://developer.wordpress.org/reference/classes/wp_block/)

The block instance.

`$attribute_name`string

The name of an attribute.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-block-bindings-source.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.1/src/wp-includes/class-wp-block-bindings-source.php#L98)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/class-wp-block-bindings-source.php#L98-L98)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Block_Bindings_Source::get_value()](https://developer.wordpress.org/reference/classes/wp_block_bindings_source/get_value/)`wp-includes/class-wp-block-bindings-source.php` |

Calls the callback function specified in the `$get_value_callback` property with the given arguments and returns the result. It can be modified with `block_bindings_source_value` filter.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/block_bindings_source_value/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.7.0](https://developer.wordpress.org/reference/since/6.7.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fblock_bindings_source_value%2F)
before being able to contribute a note or feedback.