How to get all existing post types
Thanks to @mmm The solution in this case is pretty simple. Just pass an empty $args array. Then it neglects the default ‘_builtin’ Example $get_post_types = get_post_types( $args = array(), $output, $operator ); return $get_post_types;