Home Forums ACF PRO Does "post_object" field go through "acf/render_field" twice? Reply To: Does "post_object" field go through "acf/render_field" twice?

  • I talked to the developer and he said that there is not much he can do about this. As you said, you should somehow check the key and see if it’s already run. Alternately, if your filter is only running on one specific field, you can have the filter remove itself, for example.

    add_filter('acf/render_field', 'my_acf_renter_field', 1);
    function my_acf_renter_field($field) {
      remove filter ('acf/render_field', 'my_acf_renter_field', 1);
      // the rest of your filter code