Filter request: Attribute select in html-product-attribute.php
-
Hi!
I would like to request you adding a filter in html-product-attribute.php in the attribute select part. The function get_terms is called and there should be a filter for the get_terms arguments. The select is on the line 32.
The use case:
I have a multilingual WooCommerce store that uses variable products. I can translate attributes so I can use them in the translations of products. The problem is in the admin UI when I select attributes I will see attributes in all languages. There should be a filter that would let me append the arguments so that the select shows only attributes in current language.What arguments does the filter need:
Pass the ID or post object to the filter and plugins can make their logic for the selection.Thanks!
- The topic ‘Filter request: Attribute select in html-product-attribute.php’ is closed to new replies.