alleyinteractive / alleyinteractive/alley-scripts

Make PostPicker compatible with post type-specific search endpoint

Offen
#851 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
10
Forks
3
Ø Merge
4 T. 22 Std.
Gemergte PRs (30 T.)
2

Beschreibung

### 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.