{"id":29168,"date":"2024-11-25T12:32:05","date_gmt":"2024-11-25T04:32:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/29168\/"},"modified":"2024-11-25T12:32:05","modified_gmt":"2024-11-25T04:32:05","slug":"wordpress-%e5%86%85%e5%ae%b9%e5%a4%87%e4%bb%bd%e9%95%9c%e5%83%8f%e7%ab%99%e7%82%b9%e5%bb%ba%e7%ab%8b%e6%96%b9%e6%b3%95%e5%8f%8a%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/29168\/","title":{"rendered":"wordpress \u5185\u5bb9\u5907\u4efd\u955c\u50cf\u7ad9\u70b9\u5efa\u7acb\u65b9\u6cd5\u53ca\u6ce8\u610f\u4e8b\u9879"},"content":{"rendered":"<p style=\"text-align: justify\">\u4e0b\u9762\u7531\/&#8221; target=&#8221;_blank&#8221;&gt;<strong>WordPress\u6559\u7a0b<\/strong>\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecdwordpress\u5185\u5bb9\u5907\u4efd\u955c\u50cf\u7ad9\u70b9\u5efa\u7acb\u65b9\u6cd5\u53ca\u6ce8\u610f\u4e8b\u9879\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/020\/5d8c17482b9a4962.jpg\" class=\"aligncenter\" title=\"wordpress \u5185\u5bb9\u5907\u4efd\u955c\u50cf\u7ad9\u70b9\u5efa\u7acb\u65b9\u6cd5\u53ca\u6ce8\u610f\u4e8b\u9879\u63d2\u56fe\" alt=\"wordpress \u5185\u5bb9\u5907\u4efd\u955c\u50cf\u7ad9\u70b9\u5efa\u7acb\u65b9\u6cd5\u53ca\u6ce8\u610f\u4e8b\u9879\u63d2\u56fe\" \/><\/p>\n<p>\u4f5c\u4e3a\u867e\u7c73\u7ea7\u7ad9\u957f\u4e00\u679a\uff0c\u5b9e\u5219\u662f\u4e0d\u61c2\u4ee3\u7801\u7684\u83dc\u9e1f\uff0c\u7531\u4e8e\u81ea\u5df1\u7684\u7ad9\u70b9\u662f\u5c0f\u6c34\u7ba1\u4e3b\u673a\uff0c\u800c\u4e14\u7a33\u5b9a\u6027\u4e5f\u96be\u4ee5\u4fdd\u969c\uff0c\u5728\u5f88\u591a\u8bbf\u5ba2\u7684\u5efa\u8bae\u4e0b\uff0c\u4e5f\u60f3\u5efa\u7acb\u4e00\u4e2a\u5185\u5bb9\u955c\u50cf\u7ad9\u70b9\uff0c\u4ee5\u5b9e\u73b0\u5f53\u4e3b\u7ad9\u7684\u4e3b\u673a\u7ef4\u62a4\u65f6\uff0c\u80fd\u591f\u6709\u4e00\u4e2a\u5907\u7528\u7ad9\u70b9\u8ba9\u8bbf\u5ba2\u8bbf\u95ee\u3002<\/p>\n<p>\u6700\u5148\u6211\u662f\u60f3\u80fd\u591f\u6709\u4e00\u4e2a\u5171\u7528\u7684\u6570\u636e\u5e93\u53ef\u4ee5\u7ed9\u4e24\u4e2a\u7ad9\u70b9\u4e00\u8d77\u4f7f\u7528\uff0c\u4f46\u767e\u5ea6\u67e5\u4e86\u8d44\u6599\u540e\uff0c\u53d1\u73b0\u8fd9\u5bf9\u4e8e\u865a\u62df\u4e3b\u673a\u5efa\u7ad9\u6765\u8bf4\u597d\u50cf\u4e0d\u9002\u7528\u3002<\/p>\n<p>\u76f4\u5230\u627e\u5230\u4e86\u4ee5\u4e0b\u7684\u4ee3\u7801\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6e90\u7ad9\u53d1\u8868\u6587\u7ae0\u65f6\uff0c\u81ea\u52a8\u5728\u955c\u50cf\u7ad9\u70b9\u4e5f\u53d1\u8868\u51fa\u6765\u3002<\/p>\n<p>\u7b2c\u4e00\u6b65\uff0c\u5728\u955c\u50cf\u7ad9\u6839\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u4e3a post.php \u7684 php \u6587\u4ef6\uff0c\u4ee3\u7801\u5185\u5bb9\uff1a<\/p>\n<p>\/\/\u4ee5\u4e0b\u4e3a\u4ee3\u7801\u6b63\u6587\u2026<\/p>\n<pre>&lt;?php \/\/\u6587\u7ae0\u63a5\u6536\ndefine(&#039;WP_USE_THEMES&#039;, false);\nrequire_once(\"wp-load.php\");\n$key=&#039;123456&#039;; \/\/\u8bbe\u7f6e\u542f\u52a8 API \u7684\u5bc6\u94a5\nif($_POST[&#039;key&#039;]==$key){\n$categorys=explode(&#039;,&#039;,$_POST[&#039;category&#039;]);\n$category=array();\nfor($x=1;$x&lt;count($categorys);$x++) {\n$category[$x-1]=get_cat_ID($categorys[$x]);\n}\n$info = array(\n&#039;post_title&#039; =&gt;&nbsp;$_POST['title'],\n'post_content'&nbsp;=&amp;gt;&nbsp;$_POST['content'],\n'post_status'&nbsp;=&amp;gt;&nbsp;'publish',\n'post_author'&nbsp;=&amp;gt;&nbsp;1,&nbsp;\/\/\u53d1\u5e03\u6587\u7ae0\u7684\u4f5c\u8005&nbsp;ID\uff0c1&nbsp;\u4e3a\u7ba1\u7406\u5458\n'post_date'&nbsp;=&amp;gt;&nbsp;$_POST['date'],\n'tags_input'&nbsp;=&amp;gt;&nbsp;$_POST['tags'],\n'post_category'&nbsp;=&amp;gt;&nbsp;$category,\n'post_type'&nbsp;=&amp;gt;&nbsp;$_POST['type']\n);\nwp_insert_post(&nbsp;$info&nbsp;);\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u7b2c\u4e8c\u6b65\uff0c\u5728\u4e3b\u7ad9\u4e3b\u9898\u7684 functions.php \u6587\u4ef6\u7684\u6700\u540e\u4e00\u4e2a?&gt;\u524d\u52a0\u5165\u5df2\u4e0b\u4ee3\u7801\uff0c\u5e76\u8bbe\u7f6e key\uff0c\u4fee\u6539 API \u5730\u5740\u3002<\/p>\n<pre>\/\/\u6587\u7ae0\u63a8\u9001\nadd_action('publish_post',&nbsp;'fanly_sync_post');&nbsp;\/\/\u94a9\u5b50\uff0c\u5728\u6587\u7ae0\u53d1\u5e03\u65f6\u6267\u884c\nfunction&nbsp;fanly_sync_post($post_ID)&nbsp;{\n$key='123456';&nbsp;\/\/\u8f93\u5165\u4f60\u8bbe\u7f6e\u7684\u5bc6\u94a5\n$url='http:\/\/3838521.com\/post.php';\/\/API\u5730\u5740,\u5c31\u662f\u63a5\u53d7\u6570\u636e\u7684\u90a3\u4e2a\u7ad9\u70b9\uff0c\u4fee\u6539\u4e3a\u81ea\u5df1\u7ad9\u70b9\n$post_info&nbsp;=&nbsp;get_post($post_ID);\nif&nbsp;(&nbsp;$post_info-&amp;gt;post_status&nbsp;==&nbsp;'publish'&nbsp;&amp;amp;&amp;amp;&nbsp;$_POST['original_post_status']&nbsp;!=&nbsp;'publish'&nbsp;)&nbsp;{\n$title=$_POST['post_title'];\n$content=$_POST['content'];\n$date=$_POST['aa'].'-'.$_POST['mm'].'-'.$_POST['jj'].'&nbsp;'.$_POST['hh'].':'.$_POST['mn'].':'.$_POST['ss'];\n$category='';\nfor($x=1;$x&lt;count if curl_setopt curl_close return&gt;&lt;p&gt;\u8fd9\u6837\u4e00\u6765\uff0c\u5728\u4e3b\u7ad9\u53d1\u8868\u4e00\u7bc7\u6587\u7ae0\u540e\uff0c\u955c\u50cf\u7ad9\u70b9\u4e5f\u5c31\u4f1a\u53d1\u8868\u51fa\u6765\u4e00\u7bc7\u6587\u7ae0\u4e86\uff0c\u4f46\u4e5f\u4f1a\u6709\u4e00\u4e9b\u610f\u5916\u60c5\u51b5\uff0c\u6bd4\u5982\u4e0d\u662f\u9a6c\u4e0a\u53d1\u8868\u51fa\u6765\uff0c\u800c\u662f\u663e\u793a\u8ba1\u5212\u4e2d\uff0c\u6b63\u5e38\u9694\u51e0\u5206\u949f\u540e\u4f1a\u53d1\u8868\u597d\uff0c\u4f46\u4e5f\u4f1a\u6709\u53d1\u8868\u5931\u8d25\uff0c\u9700\u8981\u5728\u540e\u53f0\u6587\u7ae0\u7ba1\u7406\u4e2d\uff0c\u9009\u62e9\u8be5\u53d1\u8868\u5931\u8d25\u6587\u7ae0\uff0c\u72b6\u6001\u4fee\u6539\u4e3a\u5df2\u53d1\u5e03\uff0c\u66f4\u65b0\u5373\u53ef\u3002&lt;\/p&gt;\n&lt;p&gt;&lt;strong&gt;\u4e00\u4e9b\u610f\u5916\u60c5\u51b5\u7684\u89e3\u51b3\uff1a&lt;\/strong&gt;&lt;\/p&gt;\n&lt;p&gt;\u95ee\u9898 1\uff0c\u7531\u4e8e\u4e3b\u9898\u5347\u7ea7\u540e\uff0cfunctions.php \u4ee3\u7801\u4f1a\u88ab\u7f6e\u6362\u3002\u7528\u4ee5\u4e0a\u65b9\u6cd5\u5b9e\u73b0\u7684\u5185\u5bb9\u955c\u50cf\u6bcf\u6b21\u5728\u4e3b\u9898\u5347\u7ea7\u540e\u90fd\u9700\u8981\u4fee\u6539 functions.php \u4ee3\u7801\uff0c\u8fd9\u4f1a\u9020\u6210\u9ebb\u70e6\u3002&lt;\/p&gt;\n&lt;p&gt;\u6240\u4ee5\u6709\u5982\u4e0b\u89e3\u51b3\u529e\u6cd5\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a&lt;\/p&gt;\n&lt;pre class=\"brush:php;toolbar:false\"&gt;&lt;?php \/*\nPlugin Name: \u5c0f\u63d2\u4ef6\nDescription: \u7ed9\u4e3b\u9898\u6dfb\u52a0\u70b9\u5c0f\u529f\u80fd\nAuthor: \u4e91\u843d\n*\/\n\/\/\u6587\u7ae0\u63a8\u9001\nadd_action(&#039;publish_post&#039;, &#039;fanly_sync_post&#039;); \/\/\u94a9\u5b50\uff0c\u5728\u6587\u7ae0\u53d1\u5e03\u65f6\u6267\u884c\nfunction fanly_sync_post($post_ID) {\n$key=&#039;123456&#039;; \/\/\u8f93\u5165\u4f60\u8bbe\u7f6e\u7684\u5bc6\u94a5\n$url=&#039;http:\/\/3838521.com\/post.php&#039;;\/\/API\u5730\u5740,\u5c31\u662f\u63a5\u53d7\u6570\u636e\u7684\u90a3\u4e2a\u7ad9\u70b9\uff0c\u4fee\u6539\u4e3a\u81ea\u5df1\u7ad9\u70b9\n$post_info = get_post($post_ID);\nif ( $post_info-&gt;post_status&nbsp;==&nbsp;'publish'&nbsp;&amp;amp;&amp;amp;&nbsp;$_POST['original_post_status']&nbsp;!=&nbsp;'publish'&nbsp;)&nbsp;{\n$title=$_POST['post_title'];\n$content=$_POST['content'];\n$date=$_POST['aa'].'-'.$_POST['mm'].'-'.$_POST['jj'].'&nbsp;'.$_POST['hh'].':'.$_POST['mn'].':'.$_POST['ss'];\n$category='';\nfor($x=1;$x&lt;count if curl_setopt curl_close return&gt;&lt;\/count&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u590d\u5236\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u6700\u597d\u662f\u7528 Notepad ++\u7b49\u5de5\u5177\u53e6\u5b58\u4e3a php \u6587\u4ef6\uff0c\u6253\u5305\u6210 zip \u6587\u6863\uff0c\u5728 wordpress \u63d2\u4ef6\u5b89\u88c5\u540e\u53f0\u4e0a\u4f20\uff0c\u5b89\u88c5\u5e76\u542f\u7528\u3002<\/p>\n<p>\u8fd9\u6837\u5c31\u662f\u4e00\u4e2a\u63d2\u4ef6\u5f62\u5f0f\u5b58\u5728\u4e86\uff0c\u4e3b\u9898\u5347\u7ea7\u540e\u4e0d\u518d\u6709\u5f71\u54cd\u3002<\/p>\n<p>\u95ee\u9898 2\uff0c\u6709\u4e9b\u4e3b\u9898\u7f16\u8f91\u5668\u662f\u652f\u6301\u5bc6\u7801\u53ef\u89c1\u4ed8\u8d39\u53ef\u89c1\u7b49\u77ed\u4ee3\u7801\u7684\uff0c\u4f46\u77ed\u4ee3\u7801\u5728\u7f16\u8f91\u6a21\u5f0f\u8ddf\u8f93\u51fa\u6a21\u5f0f\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u5230\u4e86\u955c\u50cf\u7ad9\u7684\u5185\u5bb9\u4f1a\u662f\u8f93\u51fa\u6a21\u5f0f\uff0c\u6709\u53ef\u80fd\u4f1a\u8f93\u51fa\u5f02\u5e38\u3002<\/p>\n<p>\u6211\u7684\u89e3\u51b3\u529e\u6cd5\u4e5f\u662f\u91c7\u7528\u5c0f\u63d2\u4ef6\u7684\u529e\u6cd5\uff0c\u5bf9\u8fd9\u4e9b\u4ee3\u7801\u8fdb\u884c\u4e00\u4e2a\u81ea\u52a8\u4fee\u6539\u3002\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;?php \/*\nPlugin Name: \u5c0f\u63d2\u4ef6\nDescription: \u7ed9\u4e3b\u9898\u6dfb\u52a0\u70b9\u5c0f\u529f\u80fd\nAuthor: \u4e91\u843d\n*\/\n\/\/\u5185\u5bb9\u6587\u5b57\u66ff\u6362\nfunction wpdaxue_replace_text($text){\n$replace = array(\n\/\/ &#039;\u539f\u59cb\u6587\u5b57&#039; =&gt;&nbsp;'\u66ff\u6362\u4e3a\u8fd9\u4e9b'\n'\"20\"]'&nbsp;=&amp;gt;&nbsp;'\"20\"]',\n'\"10\"]'&nbsp;=&amp;gt;&nbsp;'\"10\"]',\n'\"50\"]'&nbsp;=&amp;gt;&nbsp;'\"50\"]'\n);\n$text&nbsp;=&nbsp;str_replace(array_keys($replace),&nbsp;$replace,&nbsp;$text);\nreturn&nbsp;$text;\n}\nadd_filter('the_content',&nbsp;'wpdaxue_replace_text');&nbsp;\/\/\u6b63\u6587\nadd_filter('the_excerpt',&nbsp;'wpdaxue_replace_text');&nbsp;\/\/\u6458\u8981\nadd_filter('comment_text',&nbsp;'wpdaxue_replace_text');&nbsp;\/\/\u8bc4\u8bba\n?&amp;gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5728\u6b64\u6587\u4e2d\uff0c\u4f7f\u7528\u5230\u7684\u4ee3\u7801\u90fd\u662f\u4e07\u80fd\u7684\u535a\u4e3b\u4eec\u63d0\u4f9b\u7684\uff0c\u6211\u53ea\u662f\u5bf9\u5176\u8fdb\u884c\u4e86\u4e00\u4e2a\u6709\u6548\u7684\u6574\u5408\uff0c\u6765\u5b9e\u73b0\u6211\u7684\u9700\u6c42\uff0c\u5728\u6b64\u611f\u8c22\u5171\u4eab\u7cbe\u795e\u7684\u535a\u4e3b\u4eec\u7684\u8f9b\u52e4\u4ed8\u51fa\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f \u5185\u5bb9\u5907\u4efd\u955c\u50cf\u7ad9\u70b9\u5efa\u7acb\u65b9\u6cd5\u53ca\u6ce8\u610f\u4e8b\u9879\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u7531\/&#8221; target=&#8221;_blank&#8221;&gt;WordPress\u6559\u7a0b\u680f\u76ee\u7ed9\u5927\u5bb6\u4ecb\u7ecdwordpress\u5185\u5bb9\u5907\u4efd\u955c\u50cf\u7ad9\u70b9\u5efa\u7acb\u65b9\u6cd5\u53ca\u6ce8\u610f\u4e8b\u9879\uff0c\u5e0c\u671b\u5bf9\u9700\u8981\u7684\u670b\u53cb\u6709\u6240\u5e2e\u52a9\uff01 \u4f5c\u4e3a\u867e\u7c73\u7ea7\u7ad9\u957f\u4e00\u679a\uff0c\u5b9e\u5219\u662f\u4e0d\u61c2\u4ee3\u7801\u7684\u83dc\u9e1f\uff0c\u7531\u4e8e\u81ea\u5df1\u7684\u7ad9\u70b9\u662f\u5c0f\u6c34\u7ba1\u4e3b\u673a\uff0c\u800c\u4e14\u7a33\u5b9a\u6027\u4e5f\u96be\u4ee5\u4fdd\u969c\uff0c\u5728\u5f88\u591a\u8bbf\u5ba2\u7684\u5efa\u8bae\u4e0b\uff0c\u4e5f\u60f3\u5efa\u7acb\u4e00\u4e2a\u5185\u5bb9\u955c\u50cf\u7ad9\u70b9\uff0c\u4ee5\u5b9e\u73b0\u5f53\u4e3b\u7ad9\u7684\u4e3b\u673a\u7ef4\u62a4\u65f6\uff0c\u80fd\u591f\u6709\u4e00\u4e2a\u5907\u7528\u7ad9\u70b9\u8ba9\u8bbf\u5ba2\u8bbf\u95ee\u3002 \u6700\u5148\u6211\u662f\u60f3\u80fd\u591f\u6709\u4e00\u4e2a\u5171\u7528\u7684\u6570\u636e\u5e93\u53ef\u4ee5\u7ed9\u4e24\u4e2a\u7ad9\u70b9\u4e00\u8d77\u4f7f\u7528\uff0c\u4f46\u767e\u5ea6\u67e5\u4e86\u8d44\u6599\u540e\uff0c\u53d1\u73b0\u8fd9\u5bf9\u4e8e\u865a\u62df\u4e3b\u673a\u5efa\u7ad9\u6765\u8bf4\u597d\u50cf\u4e0d\u9002\u7528\u3002 \u76f4\u5230\u627e\u5230\u4e86\u4ee5\u4e0b\u7684\u4ee3\u7801\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6e90\u7ad9\u53d1\u8868\u6587\u7ae0\u65f6\uff0c\u81ea\u52a8\u5728\u955c\u50cf\u7ad9\u70b9\u4e5f\u53d1\u8868\u51fa\u6765\u3002 \u7b2c\u4e00\u6b65\uff0c\u5728\u955c\u50cf\u7ad9\u6839\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u547d\u540d\u4e3a post.php \u7684 php \u6587\u4ef6\uff0c\u4ee3\u7801\u5185\u5bb9\uff1a \/\/\u4ee5\u4e0b\u4e3a\u4ee3\u7801\u6b63\u6587\u2026 &lt;?php \/\/\u6587\u7ae0\u63a5\u6536 define(&#039;WP_USE_THEMES&#039;, false); require_once(&#8220;wp-load.php&#8221;); $key=&#039;123456&#039;; \/\/\u8bbe\u7f6e\u542f\u52a8 API \u7684\u5bc6\u94a5 if($_POST[&#039;key&#039;]==$key){ $categorys=explode(&#039;,&#039;,$_POST[&#039;category&#039;]); $category=array(); for($x=1;$x&lt;count($categorys);$x++) { $category[$x-1]=get_cat_ID($categorys[$x]); } $info = array( &#039;post_title&#039; =&gt;&nbsp;$_POST[&#8216;title&#8217;], &#8216;post_content&#8217;&nbsp;=&amp;gt;&nbsp;$_POST[&#8216;content&#8217;], &#8216;post_status&#8217;&nbsp;=&amp;gt;&nbsp;&#8216;publish&#8217;, &#8216;post_author&#8217;&nbsp;=&amp;gt;&nbsp;1,&nbsp;\/\/\u53d1\u5e03\u6587\u7ae0\u7684\u4f5c\u8005&nbsp;ID\uff0c1&nbsp;\u4e3a\u7ba1\u7406\u5458 &#8216;post_date&#8217;&nbsp;=&amp;gt;&nbsp;$_POST[&#8216;date&#8217;], &#8216;tags_input&#8217;&nbsp;=&amp;gt;&nbsp;$_POST[&#8216;tags&#8217;], &#8216;post_category&#8217;&nbsp;=&amp;gt;&nbsp;$category, &#8216;post_type&#8217;&nbsp;=&amp;gt;&nbsp;$_POST[&#8216;type&#8217;] ); wp_insert_post(&nbsp;$info&nbsp;); } \u767b\u5f55\u540e\u590d\u5236 \u7b2c\u4e8c\u6b65\uff0c\u5728\u4e3b\u7ad9\u4e3b\u9898\u7684 functions.php \u6587\u4ef6\u7684\u6700\u540e\u4e00\u4e2a?&gt;\u524d\u52a0\u5165\u5df2\u4e0b\u4ee3\u7801\uff0c\u5e76\u8bbe\u7f6e key\uff0c\u4fee\u6539 API \u5730\u5740\u3002 \/\/\u6587\u7ae0\u63a8\u9001 add_action(&#8216;publish_post&#8217;,&nbsp;&#8216;fanly_sync_post&#8217;);&nbsp;\/\/\u94a9\u5b50\uff0c\u5728\u6587\u7ae0\u53d1\u5e03\u65f6\u6267\u884c function&nbsp;fanly_sync_post($post_ID)&nbsp;{ $key=&#8217;123456&#8242;;&nbsp;\/\/\u8f93\u5165\u4f60\u8bbe\u7f6e\u7684\u5bc6\u94a5 $url=&#8217;http:\/\/3838521.com\/post.php&#8217;;\/\/API\u5730\u5740,\u5c31\u662f\u63a5\u53d7\u6570\u636e\u7684\u90a3\u4e2a\u7ad9\u70b9\uff0c\u4fee\u6539\u4e3a\u81ea\u5df1\u7ad9\u70b9 $post_info&nbsp;=&nbsp;get_post($post_ID); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-29168","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=29168"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/29168\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=29168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=29168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=29168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}