Retrieves the value from the source.
Parameters
$source_args
arrayrequired- Array containing source arguments used to look up the override value, i.e. {"key": "foo"}.
$block_instance
WP_Blockrequired- The block instance.
$attribute_name
stringrequired- The name of the target attribute.
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
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.