WP_Block_Bindings_Source::get_value( array $source_args, WP_Block $block_instance, string $attribute_name ): mixed

In this article

Retrieves the value from the source.

Parameters

$source_argsarrayrequired
Array containing source arguments used to look up the override value, i.e. {"key": "foo"}.
$block_instanceWP_Blockrequired
The block instance.
$attribute_namestringrequired
The name of the target attribute.

Return

mixed The value of the source.

Source

public function get_value( array $source_args, $block_instance, string $attribute_name ) {
	return call_user_func_array( $this->get_value_callback, array( $source_args, $block_instance, $attribute_name ) );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.