跳转至内容 跳转至侧边栏
Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

支持人员时区: Europe/Vienna (GMT+02:00)

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 christianS-25 1 years前 更新。

协助者:: Bigul.

作者 帖子
15 7 月, 2024 于 3:44 下午 #15955443

christianS-25

Background of the issue:
I'm using WooCommerce + WPML + WooCommerce Multilingual and Multi-Currency. I'm creating product attributes programmatically using the wc_create_attribute($args) function, this works as intended.

Symptoms:
After programmatically creating the attributes, they are not showing up under: WPML => Taxonomy translations. I have to manually edit each product attribute, check 'Translatable?' and then hit Save.

Questions:
Is there some hook or another way to make newly created attributes translatable by default?

主题 “[關閉] [WCML] Making product attributes translatable programmatically” 已关闭,不接受新回复。