alleyinteractive / alleyinteractive/alley-scripts

Make PostPicker compatible with post type-specific search endpoint

Đang mở
#851 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
10
Fork
3
Merge trung bình
4 ngày 22 giờ
Pull request đã merge (30 ngày)
2

Mô tả

### Description

Currently, the `PostPicker` uses the core search endpoint with `type: post`. I would like to be able to have the `PostPicker` component search for posts within a specific post type by using that type's REST endpoint and the `search` parameter.

### Use Case

It's possible for a post type to be visible in the REST API but not `public`. These post types are excluded from the core REST API search endpoint, which includes only post types with `{ public: true, show_in_rest: true }`, which means they aren't visible to the `PostPicker`. I would like to be able to use this component to search these types.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.