用户中心:/wp-content/themes/zibll/inc/functions/user/page.php
替换原:49和50行
$desc = '<span class="but c-theme" data-toggle="tooltip" title="" data-clipboard-tag="UID" data-clipboard-text="' . $user_id . '" data-original-title="点击复制UID"><i class="fa fa-id-card-o"></i>UID:' . $user_id . '</span><span class="but c-blue" data-toggle="tooltip" title="" data-clipboard-tag="用户名" data-clipboard-text="' . $user->user_login . '" data-original-title="点击复制用户名"><i class="fa fa-user-o"></i>' . $user->user_login . '</span>';
$desc .= $user->user_email ? '<span class="but c-yellow" data-toggle="tooltip" title="" data-clipboard-tag="邮箱" data-clipboard-text="' . $user->user_email . '" data-original-title="点击复制邮箱"><i class="fa fa-envelope-o"></i>' . $user->user_email . '</span>' : '';
用户主页:/wp-content/themes/zibll/inc/functions/zib-author.php
替换原:38行
$info_html .= '<div class="user-identity flex ac hh"><span class="but c-theme" data-toggle="tooltip" title="" data-clipboard-tag="UID" data-clipboard-text="' . $author_id . '" data-original-title="点击复制UID"><i class="fa fa-id-card-o"></i>UID:' . $author_id . '</span>' . ($identity ? ' ' . $identity : '') . '</div>';
评论区昵称后面增加UID显示:/wp-content/themes/zibll/inc/functions/zib-comments-list.php
替换原来35行
$user_name = '<a class="text-ellipsis font-bold" href="' . $url . '">' . $display_name .
'<span class="badg badg-sm c-blue moderator-bagd ml3 flex0"><i class="fa fa-id-card-o"></i> UID:' . $user_id . '</span></a>';
本文最后更新于:2024-10-14 03:28:39若已失效,请在下方留言
暂无评论内容