Open vitaliy-kulish-dt opened 2 years ago
Great idea. I'll mark this as an enhancement for a future version of the plugin.
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.
If the child categories have the same name, then it is impossible to determine which parent category the taxonomy belongs to.
it would be nice to be able to change the output format
$terms = apply_filters( 'apple_news_settings_taxonomy_autocomplete_terms', $terms );