文件位于: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 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
最新评论
这模板不错啊,收藏了
看看可不可用
还有macapp.org.cn macwk.cn
大佬,IOS17.1能用吗?
没安装桌面的时候就有网,安了就没有了
可是安装好了没有网啊,怎么办大佬
您好,我这边需要跟您沟通下亚马逊云科技文章合作事宜,您看可以加个微信,详聊一下嘛
感谢分享。。。