get_post_types_by_support ( $feature, $operator = 'and' )

  • (array|string) feature Single feature or an array of features the post types should support.
  • (string) operator Optional. The logical operation to perform. 'or' means only one element from the array needs to match; 'and' means all elements must match; 'not' means no elements may match. Default 'and'.
  • (string[]) A list of post type names.
Defined at:


Retrieves a list of post type names that support a specific feature.

Related Functions

get_all_post_type_supports, post_type_supports, remove_post_type_support, add_post_type_support, get_post_types

Top Google Results

User discussions

wpseek mobile