文件位于: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 ); } |
不错
收藏备用。
找好到原因了,是因为Nginx没设规则,按文档修改Nginx后可以了
删了163.com就好了
这个是V6 版本的吗
大哥可以教一下怎么弄的嘛
大佬,我想请问一下,你这个网站最底下这个当前在线人数是怎么设置的吗? 谢谢,有空看到回复一下就行😉
这种方法用于docker安装的alist不太友好