WordPress 的管理员账户很容易就能获取,虽然说拿到了管理员账号,但是不排除有些小白的密码是简单的数字密码,被攻击者爆破或者撞库成功,从而获得后台的管理员账户,荒岛本次带来 WordPress 屏蔽用户名称类的教程,只要将下面的代码添加到主题的「functions.php」文件即可。
// 荒岛一座藏有宝藏的小岛 function remove_comment_body_author_class( $classes ) { foreach( $classes as $key => $class ) { if(strstr($class, "comment-author-")||strstr($class, "author-")) { unset( $classes[$key] ); } } return $classes; }宝藏内容来自荒岛-https://x-imagine.com/wordpress-block-user-name-class.html宝藏内容来自荒岛-https://x-imagine.com/wordpress-block-user-name-class.html
请按 Ctrl+D 收藏荒岛分享给好友 如您发现本文件已经失效无法下载请联系站长修正
荒岛公众号
扫一扫关注

HDsoft27
公众号ID已复制,前往微信关注...
荒岛小程序
扫一扫关注

ximagine
哔哩姬ID已复制,前往B站关注...