acf/schema/format_value filter-hookACF 1.0

Filter the formatted value before returning

Allows modification of the value after all default formatting has been applied.

Usage

add_filter( 'acf/schema/format_value', 'wp_kama_acf_schema_format_value_filter', 10, 4 );

/**
 * Function for `acf/schema/format_value` filter-hook.
 * 
 * @param mixed  $formatted_value The formatted value.
 * @param mixed  $value           The raw field value.
 * @param array  $field_object    The ACF field object.
 * @param string $field_type_name The field type name.
 *
 * @return mixed
 */
function wp_kama_acf_schema_format_value_filter( $formatted_value, $value, $field_object, $field_type_name ){
	// filter...
	return $formatted_value;
}
$formatted_value(mixed)
The formatted value.
$value(mixed)
The raw field value.
$field_object(array)
The ACF field object.
$field_type_name(string)
The field type name.

Where the hook is called

GEO::format_field_value_for_jsonld()
acf/schema/format_value
acf/src/AI/GEO/GEO.php 418
$formatted_value = apply_filters( 'acf/schema/format_value', $formatted_value, $value, $field_object, $field_type_name );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.