Core Function
View Source on Trac ↗ _block_bindings_pattern_overrides_get_value()
_block_bindings_pattern_overrides_get_value( array $source_args, mixed $block_instance, string $attribute_name ) Gets value for the Pattern Overrides source.
Parameters 3 required
| Name / Type | Description |
|---|---|
| array | $source_args Array containing source arguments used to look up the override value. Example: array( "key" => "foo" ). Required |
| $block_instance WP_Block | The block instance. Required |
| $attribute_name string | The name of the target attribute. Required |
Return Value
(mixed)
The value computed for the source.
Function Information
Since Version
6.5.0
Source File
wp-includes/block-bindings/pattern-overrides.php
Advertisement