acf/schema/format_value/pre filter-hookACF 1.0

Filter to bypass the default formatting logic entirely

Return a non-null value to bypass all default formatting. This runs before any other formatting logic.

Usage

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

/**
 * Function for `acf/schema/format_value/pre` filter-hook.
 * 
 * @param mixed|null $pre_value       Return non-null to bypass default formatting.
 * @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|null
 */
function wp_kama_acf_schema_format_value_pre_filter( $pre_value, $value, $field_object, $field_type_name ){
	// filter...
	return $pre_value;
}
$pre_value(mixed|null)
Return non-null to bypass default formatting.
$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/pre
acf/src/AI/GEO/GEO.php 383
$pre_value = apply_filters( 'acf/schema/format_value/pre', null, $value, $field_object, $field_type_name );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.