Are there sub-systems in WordPress that would employ data structures beyond CPT that a `get_posts` won’t be able to catch?
Actually if you look closely to the codex, you can see that setting ‘post_type’ argument to any will by default leave out some post types from the query: https://codex.wordpress.org/Class_Reference/WP_Query#Type_Parameters ‘any’ – retrieves any type except revisions and types with ‘exclude_from_search’ set to true. So you can actually register a post type and make it non-public, … Read more