问题概述
将 Download Monitor 与 WPML 配合使用时,您可能会遇到以下问题:翻译仅限会员的下载内容时,其翻译内容是公开的。它的“Members only”、“Featured”和“Redirect”设置未被保留。
临时解决方法
前往 WPML设置,并将以下内容添加到自定义 XML 配置中:
XML
<wpml-config>
<custom-fields>
<custom-field action="copy">_members_only</custom-field>
<custom-field action="copy">_featured</custom-field>
<custom-field action="copy">_redirect_only</custom-field>
</custom-fields>
</wpml-config>然后再次翻译下载内容,或更新其翻译。随后,翻译将保留原始下载内容的“仅限会员”、“特色”和“重定向”设置。