Filters the output of a block bindings source.
$value, $this->name, $source_args, $block_instance, $attribute_name
Sortie :
@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.
// Modifier la valeur avec le filtre 'block_bindings_source_value'
add_filter('block_bindings_source_value', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($value) {
// Modifier la valeur
return $value;
}
Chargement des actualités...