acf/rest/format_value_for_rest

acf/rest/format_value_for_rest

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.5.12.3

apply_filters('acf/rest/format_value_for_rest') is found 1 times:

  • /includes/rest-api/acf-rest-api-functions.php line 87
    	 * @param array      $field The field array.
    	 * @param mixed      $value The raw/unformatted value.
    	 * @param string     $format The format applied to the field value.
    	 */
    	return apply_filters( 'acf/rest/format_value_for_rest', $value_formatted, $post_id, $field, $value, $format );
    }
    
    acf_add_filter_variations( 'acf/rest/format_value_for_rest', array( 'type', 'name', 'key' ), 2 );