static function get_post_types_supporting($feature) { global $_wp_post_type_features; $post_types = array_keys(wp_filter_object_list($_wp_post_type_features, array($feature => true))); return $post_types; }