alleyinteractive / apple-news

The Publish to Apple News plugin enables your WordPress blog content to be published to your Apple News channel.
https://wordpress.org/plugins/publish-to-apple-news/
GNU General Public License v3.0
154 stars 71 forks source link

Admin Apple Sections ajax autocomplete #917

Open vitaliy-kulish-dt opened 2 years ago

vitaliy-kulish-dt commented 2 years ago

If the child categories have the same name, then it is impossible to determine which parent category the taxonomy belongs to. image

it would be nice to be able to change the output format $terms = apply_filters( 'apple_news_settings_taxonomy_autocomplete_terms', $terms );

kevinfodness commented 2 years ago

Great idea. I'll mark this as an enhancement for a future version of the plugin.

kevinfodness commented 8 months ago

The implementation here is a bit different, because it's now the Automation screen that's pulling this in via a REST API call to get the list of categories. We could add the term ID to the list to help differentiate. We could also add the parent name, but that would require a follow-up REST API call to get the parent by ID, since only the parent term ID is included in the REST response for searching for a category.