嗯,不用插件,加段代码就可以了。
因为子比还没出禁止游客浏览文章的功能。
用wordpress自带的函数就能实现
if(!is_user_logged_in()){
echo '<h2>因遗憾的通知您因非法闯入本站文章页面,现在要把你抓去摘棉花</h2>';
}else{
the_content();
}
放在
zibll/inc/functions/zib-single.php
第306行下面 自己看着换嗯,基本不会有问题的

【处理购买模块】
zibll/zibpay/functions/zibpay-post.php 第226行
if ($paid) {
//添加处理挂钩
$html = apply_filters('zibpay_posts_paid_box', '', $pay_mate, $post->ID);
$html = $html ? $html : zibpay_posts_paid_box($pay_mate, $paid, $post->ID);
if(is_user_logged_in()){
echo $html;}
} else {
//添加处理挂钩
$html = apply_filters('zibpay_posts_pay_box', '', $pay_mate, $post->ID);
$html = $html ? $html : zibpay_posts_pay_box($pay_mate, $post->ID);
if(is_user_logged_in()){
echo $html;}
}
【预览】

![【教程】[权限] 禁止未登录用户查看文章-zibll教程分享社区-zibll子比主题-WordPress主题模板-zibll子比主题](https://oss.zibll.com/zibll.com/2022/06/screenshot.jpg)


大神怎么 现在这种效果,

成功了,感谢。
给你提供一张没有替换前的图吧。
可能是免费资源的缘故吧。
他露出来了。评论好像可以通过子比自行限制登录发言。可能下载也行吧,我再捣鼓下。

![表情[cahan]-WordPress主题模板-zibll子比主题](https://www.zibll.com/wp-content/themes/zibll/img/smilies/cahan.gif)



