custom taxonomy – Getting taxonomies associated with a specified post type

Question

Is that possible right now?

Running:

wp.data.select('core').getEntityRecords('root', 'taxonomy')

Lists all registered taxonomies, same result with:

wp.data.select('core').getTaxonomies()

Can I pass post type somehow? I want to populate a SelectControl with taxonomies associated with the post, showing all taxonomies will be confusing.

0
INT 2 weeks 2022-07-26T15:17:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse