WordPress建站常用插件及修改代码大全

  • A+
所属分类:校园随笔

WordPress建站常用插件及修改代码大全

WordPress建站常用插件

WordPress谷歌字体替换加速:youpzt-optimizer

WordPress本地头像插件:WP User Avatar

代码高亮插件:Crayon Syntax Highlighter、WP-Syntax 、 Customizable Syntax Highlighter

WordPress SMTP及SSL发送邮件插件:WP SMTP

WordPress标签及文章别名转拼音:Pinyin SEO

WordPress缓存插件:WP Super Cache

网站弹窗广告:Popups – WordPress Popup

WordPress下载中转页面:Download Info Page

返回顶部插件:To Top

WordPress互动问答插件:DW Question & Answer

WordPress积分插件:myCRED

WordPress验证码插件:Math Captcha

网站临时关站维护:Maintenance

模板后门检测:AntiVirus

WordPress网站安全插件:All In One WP Security、Wordfence Security

SEO插件:All in One SEO Pack

特色图片调用远程图片插件:Featured Image Via URL

失效链接检测插件:Broken Link Checker

安全防护插件:All In One WP Security & Firewall

后台菜单权限管理插件:Admin Menu Editor

百度熊掌号插件:BaiduXZH Submit

WordPress数据库清理优化插件:WP Clean Up

统计插件:WP Statistics

阿里云OSS云存储插件:OSS Upload

七牛镜像存储 WordPress 插件:wpjam-qiniu

WordPress全站SSL插件:Really Simple SSL

又拍云WordPress远程附件:https://github.com/ihacklog/hacklog-remote-attachment-upyun/issues

WordPress常用修改代码

禁止裁剪图片代码:

禁止emoji表情:

编辑器添加功能代码:

PC和手机端显示不同广告代码:

方法一

上面代码可以显示中文信息,以及自定义参数,或者用以下代码:

方法二(js判断网站在手机和PC电脑上分别显示不同的联盟广告代码)

Html里用:

JS里用:

内容回复后可见:

温馨提示: 此处内容需要评论本文后才能查看.

'), $atts)); $email = null; $user_ID = (int) wp_get_current_user()->ID; if ($user_ID > 0) { $email = get_userdata($user_ID)->user_email; //对博主直接显示内容 $admin_email = "2xxxxxx9@qq.com"; //博主Email if ($email == $admin_email) { return $content; } } else if (isset($_COOKIE['comment_author_email_' . COOKIEHASH])) { $email = str_replace('%40', '@', $_COOKIE['comment_author_email_' . COOKIEHASH]); } else { return $notice; } if (empty($email)) { return $notice; } global $wpdb; $post_id = get_the_ID(); $query = "SELECT comment_ID FROM {$wpdb->comments} WHERE comment_post_ID={$post_id} and comment_approved='1' and comment_author_email='{$email}' LIMIT 1"; if ($wpdb->get_results($query)) { return do_shortcode($content); } else { return $notice; } } add_shortcode('reply', 'reply_to_read');

编辑文章时使用如下代码:

或者:

去除登陆后顶部左上角“关于WordPress”图标代码:

爱学博客

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: