{"id":12380198,"date":"2026-03-20T23:50:26","date_gmt":"2026-03-20T15:50:26","guid":{"rendered":"https:\/\/www.likacloud.com\/knowledge\/%e5%85%a8%e9%9d%a2%e6%8e%8c%e6%8f%a1wordpress%e6%8f%92%e4%bb%b6%e5%bc%80%e5%8f%91%ef%bc%9a%e4%bb%8e%e9%9b%b6%e5%88%b0%e4%b8%80%e6%9e%84%e5%bb%ba%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%9f%e8%83%bd\/"},"modified":"2026-06-03T23:20:24","modified_gmt":"2026-06-03T15:20:24","slug":"wordpress-plugin-development-tutorial-from-scratch-a1wordpress","status":"publish","type":"knowledge_post","link":"https:\/\/www.likacloud.com\/id\/knowledge\/wordpress\/wordpress-plugin-development-tutorial-from-scratch-a1wordpress\/","title":{"rendered":"Menguasai sepenuhnya pengembangan plugin WordPress: Membangun fitur khusus dari nol"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e3a\u4ec0\u4e48\u9009\u62e9\u5f00\u53d1WordPress\u63d2\u4ef6<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u4f5c\u4e3a\u5168\u7403\u6700\u6d41\u884c\u7684\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\uff0c\u5176\u5f3a\u5927\u7684\u53ef\u6269\u5c55\u6027\u4e3b\u8981\u5f52\u529f\u4e8e\u63d2\u4ef6\u673a\u5236\u3002\u901a\u8fc7\u5f00\u53d1\u81ea\u5b9a\u4e49\u63d2\u4ef6\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u7a81\u7834\u4e3b\u9898\u7684\u9650\u5236\uff0c\u4e3a\u7f51\u7ad9\u6dfb\u52a0\u4efb\u4f55\u6240\u9700\u7684\u529f\u80fd\uff0c\u800c\u65e0\u9700\u4fee\u6539\u6838\u5fc3\u6587\u4ef6\u3002\u8fd9\u786e\u4fdd\u4e86\u529f\u80fd\u7684\u72ec\u7acb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u540c\u65f6\u65b9\u4fbf\u5728\u4e0d\u540c\u7f51\u7ad9\u95f4\u8fc1\u79fb\u548c\u590d\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u8bbe\u8ba1\u826f\u597d\u7684\u63d2\u4ef6\u80fd\u591f\u4e0eWordPress\u7684\u6838\u5fc3\u66f4\u65b0\u4fdd\u6301\u517c\u5bb9\uff0c\u5e76\u9075\u5faa\u5176\u7f16\u7801\u6807\u51c6\u548c\u6700\u4f73\u5b9e\u8df5\u3002\u8fd9\u4e0d\u4ec5\u63d0\u5347\u4e86\u7f51\u7ad9\u7684\u5b89\u5168\u6027\uff0c\u4e5f\u4e3a\u672a\u6765\u7684\u529f\u80fd\u8fed\u4ee3\u5960\u5b9a\u4e86\u575a\u5b9e\u57fa\u7840\u3002\u65e0\u8bba\u662f\u4e3a\u4e86\u6ee1\u8db3\u7279\u5b9a\u4e1a\u52a1\u9700\u6c42\uff0c\u89e3\u51b3\u73b0\u6709\u63d2\u4ef6\u65e0\u6cd5\u5b8c\u7f8e\u5904\u7406\u7684\u95ee\u9898\uff0c\u8fd8\u662f\u4f5c\u4e3a\u5546\u4e1a\u4ea7\u54c1\u53d1\u5e03\uff0c\u638c\u63e1\u63d2\u4ef6\u5f00\u53d1\u6280\u80fd\u90fd\u662fWordPress\u5f00\u53d1\u8005\u8fdb\u9636\u7684\u5fc5\u7531\u4e4b\u8def\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u642d\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2a\u63d2\u4ef6\uff1a\u57fa\u7840\u7ed3\u6784<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efa\u4e00\u4e2aWordPress\u63d2\u4ef6\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3\u5176\u57fa\u672c\u6784\u6210\u3002\u6bcf\u4e2a\u63d2\u4ef6\u90fd\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u4e3b\u6587\u4ef6\uff0c\u901a\u5e38\u4ee5\u63d2\u4ef6\u540d\u79f0\u547d\u540d\uff0c\u4f8b\u5982 <code>my-first-plugin.php<\/code>\u3002\u8fd9\u4e2a\u6587\u4ef6\u9876\u90e8\u7684\u63d2\u4ef6\u5934\u6ce8\u91ca\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\uff0c\u5b83\u5411WordPress\u7cfb\u7edf\u63d0\u4f9b\u63d2\u4ef6\u7684\u57fa\u672c\u4fe1\u606f\u3002<\/p>\n<!-- AUTO_INTERNAL_LINKS_START --><p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/www.likacloud.com\/sv\/knowledge\/wordpress\/wordpress-plugin-development-tutorial-custom-module\/\">\u638c\u63e1WordPress\u63d2\u4ef6\u5f00\u53d1\uff1a\u4ece\u96f6\u5230\u4e00\u6784\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2a\u81ea\u5b9a\u4e49\u529f\u80fd\u6a21\u5757<\/a>\u3002<\/p><!-- AUTO_INTERNAL_LINKS_END -->\n\n\n\n\n<h3 class=\"wp-block-heading\">\u521b\u5efa\u63d2\u4ef6\u4e3b\u6587\u4ef6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u63d2\u4ef6\u7684\u4e3b\u6587\u4ef6\u662f\u63d2\u4ef6\u7684\u5165\u53e3\u70b9\u3002\u4f60\u9700\u8981\u5728\u8be5\u6587\u4ef6\u7684\u5934\u90e8\u6dfb\u52a0\u6807\u51c6\u7684\u63d2\u4ef6\u4fe1\u606f\u6ce8\u91ca\u5757\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u6700\u57fa\u7840\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<!-- AUTO_SYNCED_PATTERN_INSERT_START -->\n\r\n<div class=\"flex justify-between items-center flex-col lg:flex-row xl:flex-col 2xl:flex-row gap-6 sm:gap-8 rounded-lg border border-gray-200 dark:border-gray-700 p-4 mb-8 lg:mb-10 sm:p-6 bg-white dark:bg-gray-750 shadow-md transition-colors duration-300\"\r\n     data-link=\"https:\/\/www.likacloud.com\/id\/tolink\/ultahost-wordpress-hosting\/\">\r\n     \r\n  <div class=\"flex flex-col gap-3 gap-4 sm:gap-6 w-full\">\r\n    <strong class=\"text-2xl font-semibold text-gray-900 dark:text-gray-200\">\r\n      UltaHost WordPress \u4e3b\u673a    <\/strong>\r\n    <div class=\"text-gray-600 dark:text-gray-300 word-word\">30\u5929\u9000\u6b3e\u4fdd\u8bc1\uff0c\u65e0\u9650\u5e26\u5bbd\u4e0e\u6570\u636e\u5e93\uff0c\u514d\u8d39\u7684 DDoS \u9632\u62a4\uff0c\u8d2d\u4e703\u5e74\u4f18\u60e050%<\/div>\r\n  <\/div>\r\n\r\n  <div class=\"flex items-center flex-col md:flex-row lg:flex-col xl:flex-row 2xl:flex-col gap-6 shrink-0\">\r\n          <a href=\"https:\/\/www.likacloud.com\/id\/tolink\/ultahost-wordpress-hosting\/\">\r\n                  <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251227020448.webp\" alt=\"UltaHost LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 dark:hidden\" title=\"\">\r\n          <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251229052118.webp\" alt=\"UltaHost LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 hidden dark:block\" title=\"\">\r\n              <\/a>\r\n    \r\n    <a href=\"https:\/\/www.likacloud.com\/id\/tolink\/ultahost-wordpress-hosting\/\"\r\n       class=\"bg-blue-500 w-full md:w-auto lg:w-full xl:w-auto 2xl:w-full text-center !text-white dark:!text-gray-200 !px-5 !py-1.5 rounded-full hover:bg-blue-600 transition-colors\">\r\n       \u8bbf\u95ee\u9875\u9762    <\/a>\r\n  <\/div>\r\n<\/div>\n<!-- AUTO_SYNCED_PATTERN_INSERT_END -->\n\n\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">&lt;?php\n\/**\n * Plugin Name:       \u6211\u7684\u7b2c\u4e00\u4e2a\u63d2\u4ef6\n * Plugin URI:        https:\/\/example.com\/my-first-plugin\n * Description:       \u8fd9\u662f\u4e00\u4e2a\u7528\u4e8e\u5b66\u4e60WordPress\u63d2\u4ef6\u5f00\u53d1\u7684\u793a\u4f8b\u63d2\u4ef6\u3002\n * Version:           1.0.0\n * Author:            \u4f60\u7684\u540d\u5b57\n * License:           GPL v2 or later\n * Text Domain:       my-first-plugin\n *\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5c06\u8fd9\u6bb5\u4ee3\u7801\u4fdd\u5b58\u4e3a\u4e00\u4e2aPHP\u6587\u4ef6\uff0c\u5e76\u653e\u5165 <code>\/wp-content\/plugins\/<\/code> \u76ee\u5f55\u4e0b\u7684\u4e00\u4e2a\u65b0\u6587\u4ef6\u5939\uff08\u4f8b\u5982 <code>my-first-plugin<\/code>\uff09\u4e2d\u3002\u4e4b\u540e\uff0c\u4f60\u4fbf\u53ef\u4ee5\u5728WordPress\u540e\u53f0\u7684\u201c\u63d2\u4ef6\u201d\u9875\u9762\u4e2d\u770b\u5230\u5e76\u6fc0\u6d3b\u5b83\u3002\u6b64\u65f6\uff0c\u8fd9\u4e2a\u63d2\u4ef6\u867d\u7136\u5c1a\u672a\u6dfb\u52a0\u4efb\u4f55\u529f\u80fd\uff0c\u4f46\u5df2\u7ecf\u662f\u4e00\u4e2a\u5408\u6cd5\u7684\u3001\u53ef\u88abWordPress\u8bc6\u522b\u7684\u63d2\u4ef6\u4e86\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7406\u89e3\u63d2\u4ef6\u76ee\u5f55\u7ed3\u6784<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u968f\u7740\u63d2\u4ef6\u529f\u80fd\u7684\u589e\u52a0\uff0c\u5408\u7406\u7684\u76ee\u5f55\u7ed3\u6784\u5bf9\u4e8e\u4ee3\u7801\u7ec4\u7ec7\u81f3\u5173\u91cd\u8981\u3002\u4e00\u4e2a\u5178\u578b\u7684\u63d2\u4ef6\u76ee\u5f55\u53ef\u80fd\u5305\u542b\u4ee5\u4e0b\u90e8\u5206\uff1a<br \/>\n- \u4e3b\u63d2\u4ef6\u6587\u4ef6\uff08\u5982 <code>my-first-plugin.php<\/code>\uff09\uff1a\u4f4d\u4e8e\u63d2\u4ef6\u6839\u76ee\u5f55\uff0c\u5305\u542b\u63d2\u4ef6\u5934\u4fe1\u606f\u3002<br \/>\n- <code>includes\/<\/code> \u76ee\u5f55\uff1a\u5b58\u653e\u6838\u5fc3\u529f\u80fd\u7c7b\u6587\u4ef6\u6216\u51fd\u6570\u6587\u4ef6\u3002<br \/>\n- <code>admin\/<\/code> \u76ee\u5f55\uff1a\u5b58\u653e\u540e\u53f0\u7ba1\u7406\u754c\u9762\u76f8\u5173\u7684\u4ee3\u7801\u3002<br \/>\n- <code>public\/<\/code> \u76ee\u5f55\uff1a\u5b58\u653e\u524d\u7aef\u903b\u8f91\u76f8\u5173\u7684\u4ee3\u7801\u3002<br \/>\n- <code>assets\/<\/code> \u76ee\u5f55\uff1a\u5b58\u653eCSS\u6837\u5f0f\u8868\u3001JavaScript\u811a\u672c\u548c\u56fe\u7247\u7b49\u8d44\u6e90\u6587\u4ef6\u3002<br \/>\n- <code>languages\/<\/code> \u76ee\u5f55\uff1a\u5b58\u653e\u56fd\u9645\u5316\u7ffb\u8bd1\u6587\u4ef6\uff08.po\/.mo\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd9\u79cd\u6a21\u5757\u5316\u7684\u7ed3\u6784\u4f7f\u5f97\u4ee3\u7801\u66f4\u6e05\u6670\uff0c\u4fbf\u4e8e\u56e2\u961f\u534f\u4f5c\u548c\u7ef4\u62a4\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6838\u5fc3\u5f00\u53d1\u6982\u5ff5\uff1a\u94a9\u5b50\u4e0e\u8fc7\u6ee4\u5668<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u63d2\u4ef6\u5f00\u53d1\u7684\u6838\u5fc3\u54f2\u5b66\u662f\u201c\u94a9\u5b50\u201d\uff08Hooks\uff09\u3002\u94a9\u5b50\u5141\u8bb8\u4f60\u5728\u7279\u5b9a\u7684\u65f6\u95f4\u70b9\u6216\u4f4d\u7f6e\u63d2\u5165\u81ea\u5b9a\u4e49\u4ee3\u7801\uff0c\u4ee5\u6539\u53d8\u6216\u6269\u5c55WordPress\u7684\u9ed8\u8ba4\u884c\u4e3a\u3002\u94a9\u5b50\u4e3b\u8981\u5206\u4e3a\u4e24\u79cd\u7c7b\u578b\uff1a\u52a8\u4f5c\u94a9\u5b50\uff08Action Hooks\uff09\u548c\u8fc7\u6ee4\u5668\u94a9\u5b50\uff08Filter Hooks\uff09\u3002<\/p>\n<!-- AUTO_INTERNAL_LINKS_START --><p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/www.likacloud.com\/sv\/knowledge\/wordpress\/wordpress-plugin-development-tutorial-custom-functions\/\">WordPress\u63d2\u4ef6\u5f00\u53d1\u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff1a\u624b\u628a\u624b\u6559\u4f60\u521b\u5efa\u81ea\u5b9a\u4e49\u529f\u80fd<\/a>\u3002<\/p><!-- AUTO_INTERNAL_LINKS_END -->\n\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u7528\u52a8\u4f5c\u94a9\u5b50\u6267\u884c\u81ea\u5b9a\u4e49\u4ee3\u7801<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u52a8\u4f5c\u94a9\u5b50\u5141\u8bb8\u4f60\u5728WordPress\u6267\u884c\u6d41\u7a0b\u7684\u7279\u5b9a\u65f6\u523b\u201c\u505a\u201d\u4e00\u4e9b\u4e8b\u60c5\uff0c\u4f8b\u5982\u5728\u6587\u7ae0\u53d1\u5e03\u540e\u53d1\u9001\u901a\u77e5\u3001\u5728\u9875\u9762\u5934\u90e8\u6dfb\u52a0\u4ee3\u7801\u7b49\u3002\u4f7f\u7528 <code>add_action()<\/code> \u51fd\u6570\u53ef\u4ee5\u5c06\u4f60\u7684\u81ea\u5b9a\u4e49\u51fd\u6570\u6302\u8f7d\u5230\u4e00\u4e2a\u52a8\u4f5c\u94a9\u5b50\u4e0a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u5982\uff0c\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u5728\u7f51\u7ad9\u524d\u53f0\u9875\u811a\u8f93\u51fa\u81ea\u5b9a\u4e49\u4fe1\u606f\u7684\u529f\u80fd\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\uff0c\u7136\u540e\u901a\u8fc7 <code>add_action()<\/code> \u5c06\u5176\u7ed1\u5b9a\u5230 <code>wp_footer<\/code> \u8fd9\u4e2a\u94a9\u5b50\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">\/\/ \u5b9a\u4e49\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\nfunction myplugin_add_footer_text() {\n    echo &#039;&lt;p style=&quot;text-align:center;&quot;&gt;\u611f\u8c22\u4f7f\u7528\u672c\u63d2\u4ef6\uff01&lt;\/p&gt;&#039;;\n}\n\/\/ \u5c06\u51fd\u6570\u6302\u8f7d\u5230 `wp_footer` \u52a8\u4f5c\u94a9\u5b50\nadd_action( &#039;wp_footer&#039;, &#039;myplugin_add_footer_text&#039; );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f53WordPress\u6267\u884c\u5230\u9875\u811a\u90e8\u5206\u65f6\uff0c\u5c31\u4f1a\u81ea\u52a8\u8c03\u7528 <code>myplugin_add_footer_text()<\/code> \u51fd\u6570\uff0c\u8f93\u51fa\u6211\u4eec\u5b9a\u4e49\u7684\u6587\u5b57\u3002<\/p>\n<!-- AUTO_SYNCED_PATTERN_INSERT_START -->\n\r\n<div class=\"flex justify-between items-center flex-col lg:flex-row xl:flex-col 2xl:flex-row gap-6 sm:gap-8 rounded-lg border border-gray-200 dark:border-gray-700 p-4 mb-8 lg:mb-10 sm:p-6 bg-white dark:bg-gray-750 shadow-md transition-colors duration-300\"\r\n     data-link=\"https:\/\/www.likacloud.com\/id\/tolink\/hosting-shared-hosting\/\">\r\n     \r\n  <div class=\"flex flex-col gap-3 gap-4 sm:gap-6 w-full\">\r\n    <strong class=\"text-2xl font-semibold text-gray-900 dark:text-gray-200\">\r\n      hosting.com \u5171\u4eab\u4e3b\u673a    <\/strong>\r\n    <div class=\"text-gray-600 dark:text-gray-300 word-word\">\u9ad8\u6027\u80fd\uff0c\u914d\u5907 AMD EPYC CPU\u3001NVMe SSD \u5b58\u50a8\u548c LiteSpeed\uff0c\u5168\u5929\u501924\u5c0f\u65f6\u3001\u5168\u5929\u5019\u7684\u4e13\u5bb6\u5185\u90e8\u652f\u6301\uff0c\u9ad8\u7ea7\u5b89\u5168\u63aa\u65bd\uff0c\u5305\u62ec SSL\u3001\u66b4\u529b\u7834\u89e3\u3001\u6076\u610f\u8f6f\u4ef6\u548c DDoS \u9632\u62a4\uff0c\u8282\u7701\u9ad8\u8fbe 73%<\/div>\r\n  <\/div>\r\n\r\n  <div class=\"flex items-center flex-col md:flex-row lg:flex-col xl:flex-row 2xl:flex-col gap-6 shrink-0\">\r\n          <a href=\"https:\/\/www.likacloud.com\/id\/tolink\/hosting-shared-hosting\/\">\r\n                  <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/09\/20250901222940.svg\" alt=\"hosting.com LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 dark:hidden\" title=\"\">\r\n          <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251228220957.webp\" alt=\"hosting.com LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 hidden dark:block\" title=\"\">\r\n              <\/a>\r\n    \r\n    <a href=\"https:\/\/www.likacloud.com\/id\/tolink\/hosting-shared-hosting\/\"\r\n       class=\"bg-blue-500 w-full md:w-auto lg:w-full xl:w-auto 2xl:w-full text-center !text-white dark:!text-gray-200 !px-5 !py-1.5 rounded-full hover:bg-blue-600 transition-colors\">\r\n       \u8bbf\u95ee\u9875\u9762    <\/a>\r\n  <\/div>\r\n<\/div>\n<!-- AUTO_SYNCED_PATTERN_INSERT_END -->\n\n\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u7528\u8fc7\u6ee4\u5668\u94a9\u5b50\u4fee\u6539\u6570\u636e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fc7\u6ee4\u5668\u94a9\u5b50\u5141\u8bb8\u4f60\u5728\u6570\u636e\u88ab\u4f7f\u7528\u6216\u4fdd\u5b58\u4e4b\u524d\u201c\u4fee\u6539\u201d\u5b83\u3002\u4f8b\u5982\uff0c\u4fee\u6539\u6587\u7ae0\u6807\u9898\u3001\u8fc7\u6ee4\u8bc4\u8bba\u5185\u5bb9\u7b49\u3002\u4f7f\u7528 <code>add_filter()<\/code> \u51fd\u6570\u53ef\u4ee5\u5c06\u4f60\u7684\u81ea\u5b9a\u4e49\u51fd\u6570\u6302\u8f7d\u5230\u4e00\u4e2a\u8fc7\u6ee4\u5668\u94a9\u5b50\u4e0a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5047\u8bbe\u6211\u4eec\u60f3\u5728\u6240\u6709\u6587\u7ae0\u6807\u9898\u672b\u5c3e\u81ea\u52a8\u6dfb\u52a0\u4e00\u4e2a\u5546\u6807\u7b26\u53f7\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u51fd\u6570\u7ed1\u5b9a\u5230 <code>the_title<\/code> \u8fc7\u6ee4\u5668\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">\/\/ \u5b9a\u4e49\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\uff0c\u5b83\u63a5\u6536\u539f\u59cb\u6807\u9898\u4f5c\u4e3a\u53c2\u6570\nfunction myplugin_add_trademark_to_title( $title ) {\n    \/\/ \u4ec5\u5728\u524d\u7aef\u6587\u7ae0\u5217\u8868\u548c\u5355\u7bc7\u6587\u7ae0\u9875\u9762\u4fee\u6539\uff0c\u907f\u514d\u5f71\u54cd\u540e\u53f0\n    if ( ! is_admin() ) {\n        $title .= &#039; \u2122&#039;;\n    }\n    \/\/ \u5fc5\u987b\u8fd4\u56de\u4fee\u6539\u540e\u7684\u503c\n    return $title;\n}\n\/\/ \u5c06\u51fd\u6570\u6302\u8f7d\u5230 `the_title` \u8fc7\u6ee4\u5668\u94a9\u5b50\nadd_filter( &#039;the_title&#039;, &#039;myplugin_add_trademark_to_title&#039; );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>$title<\/code> \u53c2\u6570\u662f\u539f\u59cb\u7684\u6807\u9898\u6587\u672c\uff0c\u51fd\u6570\u5bf9\u5176\u8fdb\u884c\u4fee\u6539\u540e\u5fc5\u987b\u8fd4\u56de\u65b0\u7684\u503c\u3002\u8fd9\u5c31\u662f\u8fc7\u6ee4\u5668\u4e0e\u52a8\u4f5c\u7684\u5173\u952e\u533a\u522b\uff1a\u8fc7\u6ee4\u5668\u5fc5\u987b\u8fd4\u56de\u4e00\u4e2a\u503c\u3002<\/p>\n<!-- AUTO_INTERNAL_LINKS_START --><p>\u63a8\u8350\u9605\u8bfb <a href=\"https:\/\/www.likacloud.com\/sv\/knowledge\/wordpress\/wordpress-plugin-development-beginner-guide-create-first-module\/\">WordPress\u63d2\u4ef6\u5f00\u53d1\u5165\u95e8\u6307\u5357\uff1a\u4ece\u96f6\u5230\u4e00\u521b\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2a\u529f\u80fd\u6a21\u5757<\/a>\u3002<\/p><!-- AUTO_INTERNAL_LINKS_END -->\n\n\n\n\n<h2 class=\"wp-block-heading\">\u4e3a\u63d2\u4ef6\u6dfb\u52a0\u7ba1\u7406\u9875\u9762\u548c\u8bbe\u7f6e\u9009\u9879<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u529f\u80fd\u5b8c\u5584\u7684\u63d2\u4ef6\u901a\u5e38\u9700\u8981\u5728WordPress\u540e\u53f0\u63d0\u4f9b\u4e00\u4e2a\u914d\u7f6e\u754c\u9762\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0\u4e00\u4e2a\u9876\u7ea7\u7ba1\u7406\u83dc\u5355\u6216\u8bbe\u7f6e\u5b50\u83dc\u5355\u6765\u5b9e\u73b0\u3002WordPress\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\u6765\u521b\u5efa\u8fd9\u4e9b\u9875\u9762\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u521b\u5efa\u63d2\u4ef6\u8bbe\u7f6e\u83dc\u5355\u9879<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f7f\u7528 <code>add_menu_page()<\/code> \u6216 <code>add_submenu_page()<\/code> \u51fd\u6570\u53ef\u4ee5\u4e3a\u4f60\u7684\u63d2\u4ef6\u6dfb\u52a0\u540e\u53f0\u83dc\u5355\u3002\u901a\u5e38\uff0c\u7b80\u5355\u7684\u63d2\u4ef6\u4f1a\u5c06\u81ea\u5df1\u7684\u8bbe\u7f6e\u9875\u9762\u6dfb\u52a0\u5230\u201c\u8bbe\u7f6e\u201d\u4e3b\u83dc\u5355\u4e0b\u4f5c\u4e3a\u5b50\u83dc\u5355\u3002<\/p>\n<!-- AUTO_SYNCED_PATTERN_INSERT_START -->\n\r\n<div class=\"flex justify-between items-center flex-col lg:flex-row xl:flex-col 2xl:flex-row gap-6 sm:gap-8 rounded-lg border border-gray-200 dark:border-gray-700 p-4 mb-8 lg:mb-10 sm:p-6 bg-white dark:bg-gray-750 shadow-md transition-colors duration-300\"\r\n     data-link=\"https:\/\/www.likacloud.com\/id\/tolink\/interserver-webhosting\/\">\r\n     \r\n  <div class=\"flex flex-col gap-3 gap-4 sm:gap-6 w-full\">\r\n    <strong class=\"text-2xl font-semibold text-gray-900 dark:text-gray-200\">\r\n      InterServer \u5171\u4eab\u4e3b\u673a    <\/strong>\r\n    <div class=\"text-gray-600 dark:text-gray-300 word-word\">\u5171\u4eab\u4e3b\u673a\u6bcf\u6708 $2.50 USD , \u9996\u6708 $0.1 USD \u4f18\u60e0\u7801 tryinterserver, 461\u4e2a\u4e91\u5e94\u7528\u811a\u672c\uff0c\u4e00\u952e\u5b89\u88c5\u3002<\/div>\r\n  <\/div>\r\n\r\n  <div class=\"flex items-center flex-col md:flex-row lg:flex-col xl:flex-row 2xl:flex-col gap-6 shrink-0\">\r\n          <a href=\"https:\/\/www.likacloud.com\/id\/tolink\/interserver-webhosting\/\">\r\n                  <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251228045033.svg\" alt=\"InterServer LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 dark:hidden\" title=\"\">\r\n          <img decoding=\"async\" src=\"https:\/\/www.likacloud.com\/wp-content\/uploads\/2025\/12\/20251229054830.webp\" alt=\"InterServer LOGO\" class=\"content-promotion-card-icon h-9 min-h-9 hidden dark:block\" title=\"\">\r\n              <\/a>\r\n    \r\n    <a href=\"https:\/\/www.likacloud.com\/id\/tolink\/interserver-webhosting\/\"\r\n       class=\"bg-blue-500 w-full md:w-auto lg:w-full xl:w-auto 2xl:w-full text-center !text-white dark:!text-gray-200 !px-5 !py-1.5 rounded-full hover:bg-blue-600 transition-colors\">\r\n       \u8bbf\u95ee\u9875\u9762    <\/a>\r\n  <\/div>\r\n<\/div>\n<!-- AUTO_SYNCED_PATTERN_INSERT_END -->\n\n\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u4ee3\u7801\u6f14\u793a\u4e86\u5982\u4f55\u6dfb\u52a0\u4e00\u4e2a\u5b50\u83dc\u5355\u9875\u9762\uff0c\u5e76\u5b9a\u4e49\u5176\u663e\u793a\u7684\u56de\u8c03\u51fd\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">\/\/ \u5728\u540e\u53f0\u201c\u8bbe\u7f6e\u201d\u83dc\u5355\u4e0b\u6dfb\u52a0\u5b50\u83dc\u5355\nfunction myplugin_add_settings_page() {\n    add_options_page(\n        &#039;\u6211\u7684\u63d2\u4ef6\u8bbe\u7f6e&#039;, \/\/ \u9875\u9762\u6807\u9898\n        &#039;\u6211\u7684\u63d2\u4ef6&#039;,     \/\/ \u83dc\u5355\u6807\u9898\n        &#039;manage_options&#039;, \/\/ \u6743\u9650\u8981\u6c42\uff08\u53ea\u6709\u7ba1\u7406\u5458\u53ef\u8bbf\u95ee\uff09\n        &#039;myplugin-settings&#039;, \/\/ \u83dc\u5355slug\n        &#039;myplugin_render_settings_page&#039; \/\/ \u7528\u4e8e\u663e\u793a\u9875\u9762\u5185\u5bb9\u7684\u56de\u8c03\u51fd\u6570\n    );\n}\n\/\/ \u4f7f\u7528 `admin_menu` \u52a8\u4f5c\u94a9\u5b50\u5728\u540e\u53f0\u83dc\u5355\u521d\u59cb\u5316\u65f6\u6267\u884c\u4e0a\u8ff0\u51fd\u6570\nadd_action( &#039;admin_menu&#039;, &#039;myplugin_add_settings_page&#039; );\n\n\/\/ \u5b9a\u4e49\u6e32\u67d3\u8bbe\u7f6e\u9875\u9762\u7684\u56de\u8c03\u51fd\u6570\nfunction myplugin_render_settings_page() {\n    ?&gt;\n    &lt;div class=&quot;wrap&quot;&gt;\n        &lt;h1&gt;\u6211\u7684\u63d2\u4ef6\u8bbe\u7f6e&lt;\/h1&gt;\n        &lt;form action=&quot;options.php&quot; method=&quot;post&quot;&gt;\n            &lt;?php\n            \/\/ \u8f93\u51fa\u8bbe\u7f6e\u5b57\u6bb5\u3001\u975ece\u7b49\u5b89\u5168\u4fe1\u606f\n            settings_fields( &#039;myplugin_settings_group&#039; );\n            do_settings_sections( &#039;myplugin-settings&#039; );\n            submit_button();\n            ?&gt;\n        &lt;\/form&gt;\n    &lt;\/div&gt;\n    &lt;?php\n}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f7f\u7528\u8bbe\u7f6eAPI\u6ce8\u518c\u9009\u9879<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u624b\u52a8\u5904\u7406\u8868\u5355\u63d0\u4ea4\u548c\u9a8c\u8bc1\u662f\u7e41\u7410\u4e14\u4e0d\u5b89\u5168\u7684\u3002WordPress\u8bbe\u7f6eAPI\uff08Settings API\uff09\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u5957\u6807\u51c6\u3001\u5b89\u5168\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u3001\u9a8c\u8bc1\u548c\u4fdd\u5b58\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u9700\u8981\u4f7f\u7528 <code>register_setting()<\/code>, <code>add_settings_section()<\/code> \u548c <code>add_settings_field()<\/code> \u7b49\u51fd\u6570\u6765\u5b9a\u4e49\u4f60\u7684\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"language-php\">\/\/ \u5728\u63d2\u4ef6\u521d\u59cb\u5316\u65f6\u6ce8\u518c\u8bbe\u7f6e\nfunction myplugin_register_settings() {\n    \/\/ 1. \u6ce8\u518c\u4e00\u4e2a\u8bbe\u7f6e\u7ec4\u53ca\u5176\u6570\u636e\n    register_setting(\n        &#039;myplugin_settings_group&#039;, \/\/ \u8bbe\u7f6e\u7ec4\u540d\u79f0\uff0c\u9700\u4e0e settings_fields() \u53c2\u6570\u4e00\u81f4\n        &#039;myplugin_option_name&#039; \/\/ \u5b58\u50a8\u5728\u6570\u636e\u5e93\u4e2d\u7684\u9009\u9879\u540d\n    );\n\n\/\/ 2. \u6dfb\u52a0\u4e00\u4e2a\u8bbe\u7f6e\u533a\u57df\uff08Section\uff09\n    add_settings_section(\n        &#039;myplugin_section_main&#039;, \/\/ Section ID\n        &#039;\u4e3b\u8981\u8bbe\u7f6e&#039;, \/\/ \u6807\u9898\n        null, \/\/ \u53ef\u9009\u7684\u63cf\u8ff0\u56de\u8c03\u51fd\u6570\n        &#039;myplugin-settings&#039; \/\/ \u6240\u5c5e\u7684\u9875\u9762slug\n    );\n\n\/\/ 3. \u5411\u8be5\u533a\u57df\u6dfb\u52a0\u4e00\u4e2a\u8bbe\u7f6e\u5b57\u6bb5\n    add_settings_field(\n        &#039;myplugin_field_text&#039;, \/\/ \u5b57\u6bb5ID\n        &#039;\u793a\u4f8b\u6587\u672c\u8f93\u5165&#039;, \/\/ \u5b57\u6bb5\u6807\u7b7e\n        &#039;myplugin_render_text_field&#039;, \/\/ \u6e32\u67d3\u5b57\u6bb5HTML\u7684\u56de\u8c03\u51fd\u6570\n        &#039;myplugin-settings&#039;, \/\/ \u9875\u9762slug\n        &#039;myplugin_section_main&#039; \/\/ Section ID\n    );\n}\nadd_action( &#039;admin_init&#039;, &#039;myplugin_register_settings&#039; );\n\n\/\/ \u6e32\u67d3\u6587\u672c\u8f93\u5165\u5b57\u6bb5\u7684\u56de\u8c03\u51fd\u6570\nfunction myplugin_render_text_field() {\n    $option = get_option( &#039;myplugin_option_name&#039; );\n    $value = isset( $option[&#039;text&#039;] ) ? $option[&#039;text&#039;] : &#039;&#039;;\n    echo &#039;&lt;input type=&quot;text&quot; name=&quot;myplugin_option_name[text]&quot; value=&quot;&#039; . esc_attr( $value ) . &#039;&quot; \/&gt;&#039;;\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u8bbe\u7f6eAPI\uff0c\u8868\u5355\u7684\u63d0\u4ea4\u3001\u9a8c\u8bc1\uff08\u4f60\u53ef\u4ee5\u4e3a <code>register_setting<\/code> \u5b9a\u4e49\u9a8c\u8bc1\u51fd\u6570\uff09\u548c\u4fdd\u5b58\u90fd\u7531WordPress\u6838\u5fc3\u81ea\u52a8\u5904\u7406\uff0c\u6781\u5927\u5730\u63d0\u9ad8\u4e86\u5b89\u5168\u6027\u548c\u5f00\u53d1\u6548\u7387\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u603b\u7ed3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress\u63d2\u4ef6\u5f00\u53d1\u662f\u4e00\u4e2a\u5c06\u521b\u610f\u8f6c\u5316\u4e3a\u529f\u80fd\u7684\u8fc7\u7a0b\uff0c\u5176\u6838\u5fc3\u5728\u4e8e\u7406\u89e3\u5e76\u719f\u7ec3\u8fd0\u7528\u94a9\u5b50\u7cfb\u7edf\u3002\u4ece\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u63d2\u4ef6\u6587\u4ef6\u5f00\u59cb\uff0c\u9010\u6b65\u5b66\u4e60\u5982\u4f55\u5229\u7528\u52a8\u4f5c\u94a9\u5b50\u6dfb\u52a0\u529f\u80fd\uff0c\u5229\u7528\u8fc7\u6ee4\u5668\u94a9\u5b50\u4fee\u6539\u6570\u636e\uff0c\u6700\u7ec8\u901a\u8fc7\u521b\u5efa\u7ba1\u7406\u9875\u9762\u548c\u5229\u7528\u8bbe\u7f6eAPI\u6765\u6784\u5efa\u53ef\u914d\u7f6e\u3001\u7528\u6237\u53cb\u597d\u7684\u4e13\u4e1a\u63d2\u4ef6\u3002\u9075\u5faaWordPress\u7f16\u7801\u6807\u51c6\u3001\u4fdd\u6301\u4ee3\u7801\u6a21\u5757\u5316\u3001\u5e76\u91cd\u89c6\u5b89\u5168\u6027\uff0c\u662f\u5f00\u53d1\u9ad8\u8d28\u91cf\u63d2\u4ef6\u7684\u4e0d\u4e8c\u6cd5\u95e8\u3002\u901a\u8fc7\u5b9e\u8df5\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4f60\u5c06\u80fd\u591f\u4e3a\u4efb\u4f55WordPress\u7f51\u7ad9\u6784\u5efa\u5f3a\u5927\u800c\u7a33\u5b9a\u7684\u81ea\u5b9a\u4e49\u529f\u80fd\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ \u5e38\u89c1\u95ee\u9898<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5f00\u53d1WordPress\u63d2\u4ef6\u9700\u8981\u54ea\u4e9b\u57fa\u7840\u77e5\u8bc6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f60\u9700\u8981\u5177\u5907PHP\u7f16\u7a0b\u8bed\u8a00\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u56e0\u4e3a\u63d2\u4ef6\u4e3b\u8981\u7531PHP\u7f16\u5199\u3002\u540c\u65f6\uff0c\u5bf9HTML\u3001CSS\u548cJavaScript\u6709\u57fa\u672c\u4e86\u89e3\uff0c\u8fd9\u5bf9\u4e8e\u521b\u5efa\u7528\u6237\u754c\u9762\u548c\u524d\u7aef\u4ea4\u4e92\u81f3\u5173\u91cd\u8981\u3002\u7406\u89e3MySQL\u6570\u636e\u5e93\u7684\u57fa\u672c\u6982\u5ff5\uff08\u5c3d\u7ba1WordPress\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u6570\u636e\u5e93\u64cd\u4f5c\u7c7b\uff09\u548cWordPress\u672c\u8eab\u7684\u57fa\u672c\u67b6\u6784\uff08\u5982\u6a21\u677f\u5c42\u7ea7\u3001\u5faa\u73af\uff09\u4e5f\u4f1a\u5927\u6709\u88e8\u76ca\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5982\u4f55\u8c03\u8bd5\u6211\u7684WordPress\u63d2\u4ef6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\uff0c\u786e\u4fdd\u5728 <code>wp-config.php<\/code> \u6587\u4ef6\u4e2d\u5f00\u542f <code>WP_DEBUG<\/code> \u548c <code>WP_DEBUG_LOG<\/code>\u3002\u8fd9\u4f1a\u5c06PHP\u9519\u8bef\u548c\u8b66\u544a\u8bb0\u5f55\u5230 <code>\/wp-content\/debug.log<\/code> \u6587\u4ef6\u4e2d\uff0c\u800c\u4e0d\u662f\u663e\u793a\u5728\u9875\u9762\u4e0a\uff0c\u907f\u514d\u5f71\u54cd\u7528\u6237\u4f53\u9a8c\u3002\u5176\u6b21\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>error_log()<\/code> \u51fd\u6570\u8f93\u51fa\u81ea\u5b9a\u4e49\u8c03\u8bd5\u4fe1\u606f\u5230\u65e5\u5fd7\u3002\u5bf9\u4e8e\u590d\u6742\u7684\u903b\u8f91\uff0c\u4f7f\u7528IDE\u7684\u65ad\u70b9\u8c03\u8bd5\u529f\u80fd\uff08\u5982Xdebug\uff09\u662f\u6700\u9ad8\u6548\u7684\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6211\u7684\u63d2\u4ef6\u5982\u4f55\u517c\u5bb9\u4e0d\u540c\u7684WordPress\u7248\u672c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u5f00\u53d1\u65f6\uff0c\u5e94\u907f\u514d\u4f7f\u7528\u5df2\u5f03\u7528\u7684\u51fd\u6570\uff0c\u5e76\u67e5\u9605\u5b98\u65b9\u6587\u6863\u4e86\u89e3\u51fd\u6570\u5f15\u5165\u7684WordPress\u7248\u672c\u3002\u4f60\u53ef\u4ee5\u5728\u63d2\u4ef6\u7684\u4e3b\u6587\u4ef6\u4e2d\uff0c\u901a\u8fc7 <code>@requires at least<\/code> \u6216 <code>@requires PHP<\/code> \u5728\u63d2\u4ef6\u5934\u6ce8\u91ca\u4e2d\u58f0\u660e\u6700\u4f4e\u8981\u6c42\u3002\u5728\u4ee3\u7801\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>function_exists()<\/code> \u6216 <code>class_exists()<\/code> \u6765\u68c0\u67e5\u67d0\u4e2a\u51fd\u6570\u6216\u7c7b\u662f\u5426\u53ef\u7528\uff0c\u4ece\u800c\u63d0\u4f9b\u5411\u540e\u517c\u5bb9\u7684\u5907\u7528\u65b9\u6848\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5982\u4f55\u5c06\u6211\u7684\u63d2\u4ef6\u63d0\u4ea4\u5230\u5b98\u65b9\u63d2\u4ef6\u76ee\u5f55<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u9996\u5148\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u63d2\u4ef6\u5b8c\u5168\u9075\u5faa\u5b98\u65b9\u7684\u63d2\u4ef6\u5f00\u53d1\u6307\u5357\u548c\u7f16\u7801\u6807\u51c6\u3002\u7136\u540e\uff0c\u5728WordPress.org\u4e0a\u7533\u8bf7\u4e00\u4e2aSVN\u4ed3\u5e93\u3002\u5c06\u4f60\u7684\u63d2\u4ef6\u4ee3\u7801\uff08\u5305\u62ec\u7b26\u5408\u89c4\u8303\u7684README.txt\u548c\u4e3b\u6587\u4ef6\uff09\u63d0\u4ea4\u5230\u8fd9\u4e2aSVN\u4ed3\u5e93\u7684 <code>\/trunk<\/code> \u76ee\u5f55\u3002\u63d0\u4ea4\u540e\uff0c\u5b98\u65b9\u56e2\u961f\u4f1a\u8fdb\u884c\u5ba1\u6838\uff0c\u5ba1\u6838\u901a\u8fc7\u540e\u4f60\u7684\u63d2\u4ef6\u5c31\u4f1a\u51fa\u73b0\u5728\u5b98\u65b9\u76ee\u5f55\u4e2d\uff0c\u4f9b\u5168\u7403\u7528\u6237\u4e0b\u8f7d\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Artikel ini menjelaskan pentingnya dan keunggulan dalam mengembangkan plugin untuk WordPress, serta memberikan panduan langkah demi langkah tentang cara memulai dari pembuatan file plugin dasar hingga penyusunan struktur direktori yang tepat. Artikel ini secara khusus membahas konsep-konsep inti dalam pengembangan plugin, yaitu penggunaan action hooks dan filter hooks, yang menjadi dasar yang kuat bagi para pengembang dalam membuat fitur khusus sesuai kebutuhan mereka.<\/p>","protected":false},"author":7,"featured_media":0,"template":"","meta":{"_acf_changed":false,"footnotes":""},"tags":[806,1978,2096,2135,1967],"knowledge_category":[280],"class_list":["post-12380198","knowledge_post","type-knowledge_post","status-publish","hentry","tag-wordpress-development","tag-wordpress-plugin-development","tag-plugin-development-basics","tag-plugin-dev-tutorial","tag-custom-plugins","knowledge_category-wordpress"],"acf":{"site_seo_keywords":"WordPress\u63d2\u4ef6\u5f00\u53d1,\u81ea\u5b9a\u4e49\u63d2\u4ef6,\u94a9\u5b50\u4e0e\u8fc7\u6ee4\u5668,\u52a8\u4f5c\u94a9\u5b50,\u8fc7\u6ee4\u5668\u94a9\u5b50,\u63d2\u4ef6\u76ee\u5f55\u7ed3\u6784,\u4ece\u96f6\u5f00\u53d1WordPress\u63d2\u4ef6"},"_links":{"self":[{"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/knowledge_posts\/12380198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/knowledge_posts"}],"about":[{"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/types\/knowledge_post"}],"author":[{"embeddable":true,"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/users\/7"}],"version-history":[{"count":1,"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/knowledge_posts\/12380198\/revisions"}],"predecessor-version":[{"id":12404681,"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/knowledge_posts\/12380198\/revisions\/12404681"}],"wp:attachment":[{"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/media?parent=12380198"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/tags?post=12380198"},{"taxonomy":"knowledge_category","embeddable":true,"href":"https:\/\/www.likacloud.com\/id\/wp-json\/wp\/v2\/knowledge_category?post=12380198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}