I was using the ACF Post Object field to select a post whose status is a custom one that I’ve registered, but it seems that if a post with a custom status is selected, the entry will be registered on the database correctly (I mean, the post ID), but on the WP Admin it won’t appear (it disappear after saving/updating the post), so on the frontend side is like the field was not filled in. With native statuses (publish, draft, future, etc.) it seems to be working flawlessly. I’m attaching some screenshots to help you guessing the origin of the issue.
May you help me with this issue, please? Thank you very much in advance.
I’ve researched a bit about this and I think the issue is related to the line 1307 of the file /includes/api/api-helpers.php (plugin version 5.12.3). This line says: 'post_status' => 'any', and it doesn’t allow you to change it via filters. Is there a way to change it to another value in order to force it to accept custom post statuses?