acf/render_field is an action hook and there is nothing that can be filtered. This hook passes the $field array to your function. I have no idea what this is doing on the front end but it’s not doing what you think it’s doing. This hook is only run when displaying a field for input.