文件位于: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 ); } |






最新评论
站长您好,亚马逊云咨询推广资源,望建立联系,可邮件,谢谢。
换友情链接吗?
看你的站做的挺不错的
恭喜!!太强了,硕博连读啊
雁过留毛,人过留名。
看不懂但大受震撼
每天都在战争,希望2026和平.
ZeroTier 看过多篇帖子,目前群辉、飞牛os、win11 、安卓、ubuntu ≥18.04 顺利通过,这篇相对于简单 实用、特来感谢 🙄