Method: ApplicationHelper#top_level_post_types

Defined in:
app/helpers/application_helper.rb

#top_level_post_typesArray<Integer>

Returns a list of top-level post type IDs.

Returns:

  • (Array<Integer>)


135
136
137
# File 'app/helpers/application_helper.rb', line 135

def top_level_post_types
  post_type_ids(is_top_level: true)
end