【发布时间】:2016-12-11 23:50:11
【问题描述】:
我正在尝试更改上述用户激活电子邮件。 搜索并阅读了很多似乎与新版本无关的链接。
我遇到的问题是,对于某些用户,激活链接无法正常工作,并要求他们在被引导到的页面上输入激活密钥。
我目前的修复(如果我可以让它工作,我会更改修复以挂钩相关操作)涉及更改“bp-core-functions.php”文件,修改消息以包含对实际的密钥,用户可以根据需要复制和粘贴。
'core-user-registration' => array(
/* translators: do not remove {} brackets or translate its contents. */
'post_title' => __( '[{{{site.name}}}] Activate your account', 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_content' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: <a href=\"{{{activate.url}}}\">{{{activate.url}}}</a>. Or enter the following key if prompted: {{{key}}}", 'buddypress' ),
/* translators: do not remove {} brackets or translate its contents. */
'post_excerpt' => __( "Thanks for registering!\n\nTo complete the activation of your account, go to the following link: {{{activate.url}}}. Or enter the following key if prompted: {{{key}}}", 'buddypress' ),
),
我还在 .pot 文件中更改了相同的消息...只是因为这些消息也位于它们的...只是为了尝试使此更改生效。
它不工作。有人知道如何更改发送给用户的激活相关消息吗?
谢谢 肖恩
【问题讨论】:
标签: wordpress email buddypress activation