路径:/wp-content/plugins/bbpress/includes/common
文件:widgets.php
需要将 bp_get_current_user_id(), ’40’
改成 bp_get_current_user_id(), ’80’
代码如下:
<div class="bbp-logged-in">
<a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" class="submit user-submit"><?php echo get_avatar( bbp_get_current_user_id(), '80' ); ?></a>
<h4>您好,<?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4>
<a href="https://www.weixiaoduo.com/account" target="_blank" class="button link-menu">我的账户</a>
<a href="https://mall.weixiaoduo.com/my-account" target="_blank" class="button link-menu">查看订单</a>
<a href="https://www.weixiaoduo.com/profile" target="_self" class="button link-menu">个人资料</a>
<a href="#" target="_blank" class="button link-menu">产品下载</a>
<?php bbp_logout_link(); ?>
</div>