问题概述
将YITH WooCommerce Points and Rewards Premium插件与 WPML 配合使用时,翻译后的横幅不会显示在My points页面上,并且在翻译后的页面上客户的级别已隐藏。翻译内容无法获取横幅和级别设置。
临时解决方法
- 前往 WPML设置 并打开自定义 XML 配置选项卡。
- 添加此代码并保存:
XML
<wpml-config> <custom-fields> <custom-field action="copy">_status</custom-field> <custom-field action="copy">_priority</custom-field> <custom-field action="copy">_type</custom-field> <custom-field action="copy">_simple_position</custom-field> <custom-field action="copy">_action_type</custom-field> <custom-field action="copy">_action_target_type</custom-field> <custom-field action="copy">_link_status</custom-field> <custom-field action="copy">_link_url</custom-field> <custom-field action="translate">_name</custom-field> <custom-field action="copy">_badge_enabled</custom-field> <custom-field action="copy">_level_color</custom-field> </custom-fields> </wpml-config>
- 更新横幅和级别的翻译。