在Wordpress Multisite中,站点管理员(不是超级管理员)在添加新用户时没有“添加用户而不向他们发送确认电子邮件”选项。是否有办法绕过确认电子邮件,或为站点管理员添加此选项?非常感谢
WordPress多站点允许站点管理员无需电子邮件确认即可添加用户
2 个回复
SO网友:Seamus Leahy
您将无法为非超级管理员启用复选框,因为其代码显示:
<?php if ( is_multisite() && is_super_admin() ) { ?>
<tr>
<th scope="row"><label for="noconfirmation"><?php _e(\'Skip Confirmation Email\') ?></label></th>
<td><label for="noconfirmation"><input type="checkbox" name="noconfirmation" id="noconfirmation" value="1" <?php checked( $new_user_ignore_pass ); ?> /> <?php _e( \'Add the user without sending them a confirmation email.\' ); ?></label></td>
</tr>
<?php } ?>
您可以通过以下方式禁用确认电子邮件的发送:add_filter( \'wpmu_welcome_user_notification\', \'__return_false\');
另一个选项是创建一个插件,创建自己的自定义添加用户页面。SO网友:Matthieu
现在可以在Wordpress的最新版本中使用(since 3.8 ?), 具有“manage\\u network\\u users”权限。
您可以使用User Role editor 例如,插件(在network admin prefs中)。
结束