{"id":68,"date":"2022-01-23T20:07:03","date_gmt":"2022-01-23T12:07:03","guid":{"rendered":"https:\/\/www.haoxiaokai.com\/?p=68"},"modified":"2022-01-23T20:07:03","modified_gmt":"2022-01-23T12:07:03","slug":"%e4%b8%bb%e9%a2%98%e6%89%8b%e5%86%8c","status":"publish","type":"post","link":"https:\/\/www.haoxiaokai.com\/?p=68","title":{"rendered":"\u4e3b\u9898\u624b\u518c"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p><em>Welcome to the WordPress Theme Developer Handbook, your resource for learning all about the exciting world of WordPress themes.\u00a0<\/em><\/p>\n\n\n\n<p>\u6b22\u8fce\u6765\u5230WordPress\u4e3b\u9898\u5f00\u53d1\u4eba\u5458\u624b\u518c\uff0c\u8fd9\u662f\u60a8\u5b66\u4e60WordPress\u4e3b\u9898\u4ee4\u4eba\u5174\u594b\u7684\u4e16\u754c\u7684\u8d44\u6e90\u3002<\/p>\n\n\n\n<p>The Theme Developer Handbook is a repository for all things WordPress themes. Whether you\u2019re new to WordPress themes, or you\u2019re an experienced theme developer,\u00a0you should be able to find the answer to many of your theme-related questions right here.<\/p>\n<\/div><\/div>\n\n\n\n<p>\u4e3b\u9898\u5f00\u53d1\u624b\u518c\u662fWordPress\u4e3b\u9898\u7684\u6240\u6709\u5185\u5bb9\u7684\u5b58\u50a8\u5e93\u3002\u65e0\u8bba\u60a8\u662fWordPress\u4e3b\u9898\u7684\u65b0\u624b\uff0c\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u4e3b\u9898\u5f00\u53d1\u4eba\u5458\uff0c\u60a8\u90fd\u5e94\u8be5\u80fd\u591f\u5728\u8fd9\u91cc\u627e\u5230\u8bb8\u591a\u4e3b\u9898\u76f8\u5173\u95ee\u9898\u7684\u7b54\u6848\u3002<\/p>\n\n\n\n<p>In this section, you can learn how to build the\u00a0<strong>classic or block themes<\/strong>. The classic theme is the original theme that primarily uses PHP. The block theme is a newer theme that is built mainly using HTML. The block theme is composed entirely of blocks allowing users to take full advantage of the full site editor.<\/p>\n\n\n\n<p>\u5728\u672c\u8282\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5b66\u4e60\u5982\u4f55\u6784\u5efa\u7ecf\u5178\u4e3b\u9898\u6216\u5757\u4e3b\u9898\u3002\u7ecf\u5178\u4e3b\u9898\u662f\u4e3b\u8981\u4f7f\u7528PHP\u7684\u539f\u59cb\u4e3b\u9898\u3002\u5757\u4e3b\u9898\u662f\u4e3b\u8981\u4f7f\u7528HTML\u6784\u5efa\u7684\u8f83\u65b0\u4e3b\u9898\u3002\u5757\u4e3b\u9898\u5b8c\u5168\u7531\u5757\u7ec4\u6210\uff0c\u5141\u8bb8\u7528\u6237\u5145\u5206\u5229\u7528\u5b8c\u6574\u7684\u7ad9\u70b9\u7f16\u8f91\u5668\u3002<\/p>\n\n\n\n<p>Head over to the\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/developer.wordpress.org\/block-editor\/how-to-guides\/themes\/\" target=\"_blank\">Block Editor Handbook<\/a>\u00a0if you are interested in learning about the block theme.<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u6709\u5174\u8da3\u4e86\u89e3\u5757\u4e3b\u9898\uff0c\u8bf7\u53c2\u9605\u5757\u7f16\u8f91\u5668\u624b\u518c\u3002<\/p>\n\n\n\n<p>Continue reading if you are interested in building the\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/developer.wordpress.org\/themes\/basics\/\" target=\"_blank\">classic theme<\/a>.<\/p>\n\n\n\n<p>\u5982\u679c\u60a8\u5bf9\u6784\u5efa\u7ecf\u5178\u4e3b\u9898\u611f\u5174\u8da3\uff0c\u8bf7\u7ee7\u7eed\u9605\u8bfb\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>If you\u2019re new to developing WordPress themes, start with section 1, where you can\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/getting-started\/what-is-a-theme\/\">find out what a theme is<\/a>, learn about\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/getting-started\/wordpress-licensing-the-gpl\/\">WordPress\u2019 license<\/a>,\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/getting-started\/setting-up-a-development-environment\/\">set up your development environment<\/a>, and\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/getting-started\/your-first-theme\/\">build your first theme<\/a>.<\/li><li>Once you\u2019re through the introduction, the\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/basics\/\">Theme Basics<\/a>\u00a0section will introduce you to the building blocks of a WordPress theme.<\/li><li>The\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/functionality\/\">Theme Functionality<\/a>\u00a0section will show you all of the different types of functionality you can make use of in your theme.<\/li><li>If you\u2019re looking to give flexibility and yet protect your users, head over to the\u00a0<a href=\"https:\/\/developer.wordpress.org\/themes\/customize-api\/\">Customizer<\/a>\u00a0and\u00a0<a href=\"https:\/\/developer.wordpress.org\/themes\/theme-security\/\">Security<\/a>\u00a0sections<\/li><li>If you\u2019ve got to grips with the basics of themes, check out the\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/advanced-topics\/\">Advanced Theme Topics<\/a>\u00a0to learn about child themes, best UI practices, theme testing and more.<\/li><li>Once you\u2019ve got your theme ready for the world, the final section will cover\u00a0<a href=\"https:\/\/developer.wordpress.org\/theme\/release\/\">releasing your theme<\/a>, teaching\u00a0you some best practices for\u00a0theme distribution, and for getting it ready for the WordPress.org theme directory.<\/li><\/ol>\n\n\n\n<p>Tip:If you want to learn about\u00a0<strong>block themes<\/strong>\u00a0go to the\u00a0<a href=\"https:\/\/developer.wordpress.org\/block-editor\/how-to-guides\/themes\/\">Block Editor Handbook<\/a>.<\/p>\n\n\n\n<p>The WordPress Theme Developer Handbook is created by the WordPress community, for the WordPress community.\u00a0We are always looking for more contributors; if you\u2019re interested stop by the\u00a0<a href=\"https:\/\/make.wordpress.org\/docs\">docs team blog<\/a>\u00a0to find out more about getting involved.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welcome to the WordPress Theme Developer Handbook, your &hellip; <a href=\"https:\/\/www.haoxiaokai.com\/?p=68\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u201c\u4e3b\u9898\u624b\u518c\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-4"],"_links":{"self":[{"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=68"}],"version-history":[{"count":1,"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions"}],"predecessor-version":[{"id":69,"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=\/wp\/v2\/posts\/68\/revisions\/69"}],"wp:attachment":[{"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.haoxiaokai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}