I am writing a plugin that creates new custom post types (CPTs). Previously those post types were showing up in the ACF post types drop-down within Location Rules and I was able to create posts using those fields. After exporting and reimporting the posts in order to change the post type name (I hadn’t previously noticed that different arguments allow for different URLs), those CPTs no longer appear in the Location Rules drop-down and the fields are no longer associated with the post types. The previously entered content shows up on the front-end but it can’t be modified.
It is possible that I also made some changes to the plugin, but I made no changes to the register_post_type arguments and cannot think of anything else that would cause this issue. CPTs created using the CPT UI plugin and another plugin I am using do appear in the list.
So what could prevent a CPT from showing in the Location Rules post types drop-down?