{"id":897,"date":"2018-11-11T23:13:25","date_gmt":"2018-11-11T15:13:25","guid":{"rendered":"https:\/\/www.develop-note.com\/blog\/?p=897"},"modified":"2022-02-17T15:43:59","modified_gmt":"2022-02-17T07:43:59","slug":"how-create-blog-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/www.develop-note.com\/blog\/2018\/11\/11\/how-create-blog-wordpress-plugin\/","title":{"rendered":"\u5982\u4f55\u5efa\u7acb\u4e00\u500b\u90e8\u843d\u683c\uff08\u4e09\uff09\u95dc\u65bc WordPress plugin"},"content":{"rendered":"<h1>\u958b\u59cb\u5beb\u8cbc\u6587\u524d\u8981\u505a\u4ec0\u9ebc<\/h1>\n<p>\u5728\u524d\u5e7e\u65e5\u524d\u7684<a href=\"\/blog\/2018\/11\/08\/how-create-blog-Wordpress\/\">\u8cbc\u6587<\/a>\u8ddf\u5927\u5bb6\u5206\u4eab\u4e00\u4e9b\u95dc\u65bc WordPress \u7684\u5167\u5bb9\uff0c\u5176\u4e2d\u6709\u63d0\u5230 WordPress plugin \uff0c\u4f46\u662f\u7576\u4e0b\u6c92\u6709\u8aaa\u660e\u592a\u591a\u7d30\u7bc0\uff0c\u4eca\u5929\u66f4\u9032\u4e00\u6b65\u804a\u804a\u7b46\u8005\u6163\u7528\u7684\u5916\u639b\u3002<\/p>\n<p><!--more--><\/p>\n<h1>\u95dc\u65bc\u90e8\u843d\u683c\u5167\u5bb9<\/h1>\n<p>\u8981\u8aaa\u660e\u5916\u639b\u524d\u8981\u5148\u63d0\u5230\u90e8\u843d\u683c\u7684\u5167\u5bb9\uff0c\u56e0\u70ba\u8981\u4f9d\u64da\u5167\u5bb9\u4f86\u6311\u9078\u9069\u5408\u7684\u5916\u639b\uff0c\u56e0\u70ba\u4e0d\u662f\u5168\u90e8\u90fd\u88dd\u4e0b\u53bb\u5c31\u597d\uff0c\u5c31\u50cf\u85e5\u4e0d\u80fd\u4e82\u5403\u7684\u9053\u7406\u4e00\u6a23\u3002<\/p>\n<p>\u76f8\u4fe1\u8b80\u8005\u5011\u90fd\u77e5\u9053\u7b46\u8005\u7684\u90e8\u843d\u683c\u5167\u5bb9\u662f\u4ee5\u6280\u8853\u6587\u7ae0\u70ba\u4e3b\uff0c\u6240\u4ee5\u5927\u591a\u662f\u4ee5\u6587\u5b57\u5167\u5bb9\u5c45\u591a\uff0c\u800c\u4e14\u9084\u6709\u9700\u8981\u9ad8\u4eae\u986f\u793a\u7a0b\u5f0f\u78bc\uff0c\u6240\u4ee5\u7b46\u8005\u624d\u6703\u9078\u7528\u4e0b\u5217\u5916\u639b\uff0c\u63a5\u4e0b\u4f86\u7b46\u8005\u4f9d\u7167\u529f\u80fd\u5927\u985e\u4e00\u4e00\u4ecb\u7d39\u7b46\u8005\u6240\u4f7f\u7528\u7684\u5916\u639b\u3002<\/p>\n<h2>\u4e00\u822c\u76ee\u7684<\/h2>\n<p>\u4ec0\u9ebc\u662f\u4e00\u822c\u76ee\u7684\u5462\uff0c\u5c31\u662f\u9019\u500b\u5916\u639b\u529f\u80fd\u5305\u5c71\u5305\u6d77\uff0c\u53ef\u80fd\u5305\u542b\u7a0b\u5f0f\u7528\u9014\u4e5f\u5305\u542bSEO\u7528\u9014\u7684\u5916\u639b\u6b78\u5c6c\u5728\u9019\u90e8\u5206\u3002<\/p>\n<h3>Akismet Anti-Spam<\/h3>\n<p>\u9019\u500b\u5916\u639b\u5f88\u597d\u7528\uff0c\u56e0\u70ba\u4e00\u958b\u59cb\u7b46\u8005\u7684\u6d41\u91cf\u6c92\u6709\u5f88\u591a<s>\u73fe\u5728\u4e5f\u9084\u6c92\u6709\u5f88\u591a<\/s>\uff0c\u4f46\u662f\u6703\u8a31\u591a\u7684\u8a2a\u5ba2\u7559\u8a00\uff0c\u76f8\u4fe1\u8b80\u8005\u77e5\u9053\u7559\u8a00\u7684\u90fd\u662f\u751a\u9ebc\u6a23\u7684\u5167\u5bb9\uff0c\u6c92\u932f\u5c31\u662f\u5ee3\u544a\u4e4b\u985e\u7684\u7559\u8a00\uff0c\u7576\u7136\u8ddf\u7b46\u8005\u7684\u7db2\u7ad9\u4e00\u9ede\u95dc\u4fc2\u90fd\u6c92\u6709\uff0c\u6240\u4ee5\u5168\u90fd\u9760 <code>Akismet Anti-Spam<\/code> \u56e0\u70ba\u6709\u4ed6\u624d\u53ef\u4ee5\u64cb\u4e0b\u90a3\u9ebc\u591a\u7121\u610f\u7fa9\u7684\u7559\u8a00\u3002<\/p>\n<h3>All-in-One WP Migration<\/h3>\n<p>\u8001\u5be6\u8aaa\u9019\u5916\u639b\u7b46\u8005\u9084\u6c92\u771f\u7684\u7528\u904e\uff0c\u4e0d\u904e\u53ef\u4ee5\u7121\u75db\u7684export\u8ddfimport WP\u7684\u8cc7\u6599\u6240\u4ee5\u5c31\u88dd\u4e86\u3002<\/p>\n<h3>Jetpack by WordPress.com<\/h3>\n<p>\u9019\u500b\u5916\u639b\u4e00\u5b9a\u8981\u8aaa\u4e00\u4e0b\uff0c\u4ed6\u5305\u5c71\u5305\u6d77\u5305\u4e86\u4e00\u5806\u529f\u80fd\uff0c\u5176\u4e2d\u7b46\u8005\u6700\u5e38\u7528\u7684\u662f markdown \u4ee5\u53ca\u7db2\u7ad9\u6d41\u91cf\u5206\u6790\u7684\u529f\u80fd\uff0c\u5176\u5be6\u4ed6\u4e5f\u6709\u5305\u542b CDN \u7684\u529f\u80fd\u5c31\u770b\u8b80\u8005\u6709\u6c92\u6709\u8208\u8da3\u53bb\u7814\u7a76\u4ee5\u53ca\u4f7f\u7528\uff0c\u4e0d\u904e\u8aaa\u771f\u7684\u4ed6\u7684 markdown \u8b93\u7b46\u8005\u5728\u5beb\u6587\u7ae0\u6642\u65b9\u4fbf\u8a31\u591a\u3002\u4e0d\u904e\u6709\u500b\u7f3a\u9ede\uff0c\u5c31\u662f\u8981\u8a3b\u518a WordPress \u7684\u4f7f\u7528\u8005\uff0c\u800c\u4e14\u7db2\u7ad9\u7684\u8cc7\u6599\u4e5f\u6703\u9700\u8981\u900f\u904e Jetpack \u89e3\u6790\u5448\u73fe\u3002<\/p>\n<h3>Quick Adsense<\/h3>\n<p>\u9019\u500b\u5916\u639b\u53ef\u4ee5\u65b9\u4fbf\u4f60\u5728\u7db2\u7ad9\u4e0a\u7ba1\u7406\u5ee3\u544a\u5167\u5bb9\uff0c\u4ed6\u53ef\u4ee5\u65b9\u4fbf\u8f2a\u64ad\u6216\u662f\u56fa\u5b9a\u4f4d\u5740\u64a5\u653e\u4e5f\u53ef\u4ee5\u5728 header \u6216 footer \u5167\u64b0\u5beb javascript \uff0c\u6240\u4ee5\u7b46\u8005\u7684\u5ee3\u544a\u5168\u90fd\u9760\u4ed6\u5728\u7ba1\u7406\u3002<\/p>\n<h3>Polylang<\/h3>\n<p>\u9019\u5916\u639b\u66ff\u7b46\u8005\u7684\u591a\u8a9e\u7cfb\u529f\u80fd\u7701\u4e0b\u5f88\u591a\u529b\u6c23\uff0c\u96d6\u7136\u76ee\u524d\u53ea\u6709\u6b63\u9ad4\u4e2d\u6587\u7684\u7248\u672c\uff0c\u4f46\u662f\u5728\u672a\u4f86\u5c0e\u5165\u82f1\u6587\u5167\u5bb9\u53ea\u9700\u64b0\u5beb\u8cbc\u6587\u6216\u9801\u9762\u5373\u53ef\uff0c\u518d\u4f86\u9078\u64c7\u767c\u5e03\u7684\u8a9e\u7cfb\u5c31\u5b8c\u6210\u4e86\uff0c\u9084\u6709\u63d0\u4f9b\u9078\u64c7\u8a9e\u7cfb\u7684\u529f\u80fd\u8b93\u8b80\u8005\u5011\u7c21\u55ae\u5728\u5c0f\u5de5\u5177\u64cd\u4f5c\u3002<\/p>\n<h2>\u7a0b\u5f0f\u7528\u9014<\/h2>\n<p>\u7531\u65bc\u7b46\u8005\u7684\u5167\u5bb9\u5c6c\u65bc\u7a0b\u5f0f\u958b\u767c\u70ba\u4e3b\uff0c\u6240\u4ee5\u6709\u5f88\u591a\u5916\u639b\u90fd\u662f\u56e0\u61c9\u9019\u9700\u6c42\u800c\u5b89\u88dd\u7684\u3002<\/p>\n<h3>Prism For WP<\/h3>\n<p>\u76f8\u4fe1\u5728\u90e8\u843d\u683c\u5beb\u8edf\u9ad4\u958b\u767c\u7684\u8cbc\u6587\u7684\u8b80\u8005\u61c9\u8a72\u968a <code>Prism<\/code> \u4e0d\u964c\u751f\uff0c\u7576\u521d\u7b46\u8005\u70ba\u4e86\u5c0e\u5165 <code>Prism<\/code> \u9084\u7279\u5730\u4fee\u6539PHP\u52a0\u5165\u4ed6\uff0c\u4e0d\u904e\u5f8c\u4f86\u767c\u73fe\u6709\u9019\u500b\u5916\u639b\u5c31\u767c\u73fe\u7576\u521d\u7684\u722c\u6587\u6839\u52aa\u529b\u90fd\u767d\u8cbb\u4e86\uff0c\u800c\u4e14\u9084\u8981\u628a\u539f\u4f86\u5beb\u7684\u6771\u897f\u5fa9\u539f\uff0c\u4e0d\u904e\u5012\u662f\u5b78\u5230\u500b\u7d93\u9a57\u3002<\/p>\n<h2>\u756b\u9762\u7528\u9014<\/h2>\n<p>\u6240\u8b02\u756b\u9762\u7528\u9014\uff0c\u5c31\u5c6c\u65bc\u756b\u9762\u5448\u73fe\u7684\u9700\u6c42\u6b78\u5c6c\u7684\u5916\u639b\uff0c\u7c21\u55ae\u8b1b\u5c31\u662f\u53ef\u4ee5\u900f\u904e\u9019\u5916\u639b\u8b93\u7de8\u8f2f\u5716\u7247\u6216\u662f\u5448\u73fe\u5716\u7247\u66f4\u5bb9\u6613\u5c31\u662f\u4e86\u3002<\/p>\n<h3>Easy FancyBox<\/h3>\n<p>\u9019\u5916\u639b\u53ef\u4ee5\u76f4\u63a5\u628a\u5716\u7247\u81ea\u52d5\u5c0e\u5165 FancyBox \u7684\u529f\u80fd\uff0c\u7c21\u55ae\u8b1b\u5c31\u662f\u9ede\u64ca\u5716\u7247\u6703\u653e\u5927\uff0c\u4e26\u986f\u793a\u5716\u7247\u7684 Title \uff0c\u800c\u4e14\u5728 markdown \u642d\u914d\u4e0a\u5f88\u65b9\u4fbf\u53ea\u9700\u591a\u500b\u5716\u7247\u7684\u9023\u7d50\u5373\u53ef\u3002<\/p>\n<h3>Elementor<\/h3>\n<p>\u9019\u500b\u5916\u639b\u53ef\u4ee5\u53c8\u7c21\u55ae\u7684\u65b9\u5f0f\u7de8\u5beb\u9801\u9762\u6216\u8cbc\u6587\uff0c\u96d6\u7136\u7b46\u8005\u4e3b\u8981\u662f\u4ee5 markdown \u65b9\u5f0f\u7de8\u5beb\u6240\u4ee5\u4e0d\u592a\u9700\u8981\u4ed6\uff0c\u4f46\u662f\u9084\u662f\u60f3\u63a8\u85a6\u4e00\u4e0b\uff0c\u56e0\u70ba\u7528\u8996\u89ba\u65b9\u5f0f\u7de8\u5beb\u5176\u5be6\u6bd4\u8f03\u4fbf\u5229\u3002<\/p>\n<h2>SEO<\/h2>\n<p>\u70ba\u4ec0\u9ebc\u8981\u8003\u616eSEO\u5462\uff0c\u9019\u4e4b\u5f8c\u518d\u8b1b\uff0c\u9019\u90e8\u5206\u5916\u639b\u5c31\u662f\u5e6b\u52a9\u7522\u751fSEO\u6703\u7528\u5230\u7684\u6771\u897f\u3002<\/p>\n<h3>Yoast SEO<\/h3>\n<p>\u9019\u662f\u975e\u5e38\u5be6\u7528\u7684SEO\u5916\u639b\uff0c\u96d6\u7136 <code>Jetpack by WordPress.com<\/code> \u4e5f\u6709\u5305SEO\u7684\u529f\u80fd\uff0c\u4f46\u662f\u7b46\u8005\u95dc\u65bcSEO\u9084\u90fd\u662f\u9760 <code>Yoast SEO<\/code> \uff0c\u4ed6\u53ef\u4ee5\u81ea\u52d5\u7522\u751f Sitemap \uff0c\u800c\u4e14\u5728\u64b0\u5beb\u8cbc\u6587\u6642\u63d0\u4f9b\u4e00\u4e9b SEO \u610f\u898b\uff0c\u6700\u5f8c\u4ed6\u7684\u7d05\u9ec3\u7da0\u71c8\u6700\u6709\u8da3\u4e86\uff0c\u96d6\u7136\u7b46\u8005\u6c92\u6709\u5168\u7da0\u71c8\uff0c\u4f46\u662f\u7e3d\u89ba\u5f97\u9760\u8457\u4ed6\u7684\u610f\u898b\u4f3c\u4e4e\u53ef\u4ee5\u63d0\u5347\u7db2\u7ad9\u66dd\u5149\u5ea6\u3002<\/p>\n<h3>Google Analytics Dashboard for WP (GADWP)<\/h3>\n<p>\u9019\u500b\u662f\u8981\u642d\u914d Google Analytics \u4f7f\u7528\u7684\u5916\u639b\uff0c\u900f\u904e\u9019\u5916\u639b\u53ef\u4ee5\u8b93 Google Analytics \u66f4\u65b9\u4fbf\u5206\u6790\u6211\u5011\u7db2\u7ad9\u7684\u8cc7\u8a0a\u3002<\/p>\n<h1>\u5c0f\u7d50<\/h1>\n<p>\u4eca\u65e5\u7684\u8cbc\u6587\u8ddf\u5927\u5bb6\u804a\u804a\u95dc\u65bc\u7b46\u8005\u6240\u5b89\u88dd\u7684\u4e00\u4e9b\u5916\u639b\uff0c\u5e0c\u671b\u8b80\u8005\u5011\u80fd\u5920\u5728\u90e8\u843d\u683c\u7684\u64b0\u5beb\u4e2d\u66f4\u52a0\u4fbf\u5229\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u958b\u59cb\u5beb\u8cbc\u6587\u524d\u8981\u505a\u4ec0\u9ebc \u5728\u524d\u5e7e\u65e5\u524d\u7684\u8cbc\u6587\u8ddf\u5927\u5bb6\u5206\u4eab\u4e00\u4e9b\u95dc\u65bc WordPress \u7684\u5167\u5bb9\uff0c\u5176\u4e2d\u6709\u63d0\u5230 WordPr &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.develop-note.com\/blog\/2018\/11\/11\/how-create-blog-wordpress-plugin\/\" class=\"more-link\">\u95b1\u8b80\u5168\u6587<span class=\"screen-reader-text\">\u3008\u5982\u4f55\u5efa\u7acb\u4e00\u500b\u90e8\u843d\u683c\uff08\u4e09\uff09\u95dc\u65bc WordPress plugin\u3009<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[2],"tags":[50,52,42],"class_list":["post-897","post","type-post","status-publish","format-standard","hentry","category-develop","tag-blog","tag-plugin","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/comments?post=897"}],"version-history":[{"count":8,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions"}],"predecessor-version":[{"id":3029,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/posts\/897\/revisions\/3029"}],"wp:attachment":[{"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/media?parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/categories?post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.develop-note.com\/blog\/wp-json\/wp\/v2\/tags?post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}