WordPress 禁止特定用户登录的功能-WordPress主题

摘要:有时候我们需要对一些网站用户给予一些小的惩罚,关闭一段时间的登陆功能,或是给予小黑屋的体验,那我们可以对wordpres…

有时候我们需要对一些网站用户给予一些小的惩罚,关闭一段时间的登陆功能,或是给予小黑屋的体验,那我们可以对wordpress后台的用户功能进行开发,添加一个“禁止用户登录”的功能,方便我们更好的管理会员。这段代码也十分简单。

将以下代码函数复制当前wordpress主题的functions.php文件内

来源:http://www.wazhuti.com/2443.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13119.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?