文件位于:wp-include/post-template.php
,找到get_the_content
这个函数
增加:
1 2 3 4 5 6 7 8 9 10 11 12 |
$email = null; $user_ID = (int) wp_get_current_user()->ID; $admin_email = "a"; //博主Email $wife_email = "13"; //其他email if ($user_ID > 0) { $email = get_userdata($user_ID)->user_email;} // If post password required and it doesn't match the cookie. if ($email != $admin_email && $email != $wife_email && post_password_required( $_post ) ) { return get_the_password_form( $_post ); } |
本文最后更新于2022年3月1日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
最新评论
大佬 http://ffflyy22.xyz/apps/fly.html 这是我试着创的站 但苹果手机安装后 执行都卡死 想请问是哪边出问题 可以的话 我提供网页编码寄给您 跪求协助…
马大佬您好 自己弄了一个苹果站 但测试安装不能用 连夏时也没法 能否与您交流下呢 我邮箱 ghostchat1@protonmail.com 跪求大佬T.T
该评论为私密评论
该评论为私密评论
该评论为私密评论
大佬 误传了一个文件 可以帮忙删除一下吗
aaaaa 我
我的也是