{"id":3404,"date":"2014-09-10T15:51:14","date_gmt":"2014-09-10T15:51:14","guid":{"rendered":"http:\/\/www.wpadmin.cn\/blog\/?p=3404"},"modified":"2014-09-10T15:54:34","modified_gmt":"2014-09-10T15:54:34","slug":"wordpress%e5%90%8e%e5%8f%b0%e6%b7%bb%e5%8a%a0%e4%be%a7%e8%be%b9%e6%a0%8f%e8%8f%9c%e5%8d%95","status":"publish","type":"post","link":"https:\/\/www.wpadmin.cn\/blog\/3404.html","title":{"rendered":"WordPress\u540e\u53f0\u6dfb\u52a0\u4fa7\u8fb9\u680f\u83dc\u5355"},"content":{"rendered":"<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u672c\u6587\u662fWordPress<span style=\"color: #2970a6;\">\u4f01\u4e1a\u5efa\u7ad9\u7cfb\u5217\u6559\u7a0b<\/span>\u7684\u7b2c\u4e09\u7bc7\u6587\u7ae0\uff0c\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u5982\u679c\u60f3\u4f60\u5b66\u4e60\u8fd9\u4e2a\u4f01\u4e1a\u5efa\u7ad9\u7684\u7cfb\u5217\u6559\u7a0b\uff0c\u9700\u8981\u4f60\u6709\u4e00\u70b9\u70b9\u7684WordPress\u4e3b\u9898\u6216PHP\u5f00\u53d1\u57fa\u7840\uff0c\u6ca1\u6709\u57fa\u7840\u7684\u4e5f\u53ef\u4ee5\u4f9d\u6837\u753b\u846b\u82a6\uff0c\u51fa\u9519\u4e86\u53ef\u4ee5\u7ed9\u6211\u7559\u8a00\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u672c\u7cfb\u5217\u6559\u7a0b\u7684\u7b2c\u4e00\u7bc7\u6587\u7ae0\u00a0<span style=\"color: #2970a6;\">WordPress\u540e\u53f0\u5220\u9664\u4e0d\u9700\u8981\u7684\u4fa7\u8fb9\u680f\u83dc\u5355<\/span>\u00a0\u4e2d\uff0c\u6211\u5df2\u7ecf\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5220\u9664WordPress\u540e\u53f0\u4e0d\u5fc5\u8981\u7684\u83dc\u5355\uff0c\u73b0\u5728\u6211\u518d\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u5982\u679c\u5f80WordPress\u540e\u53f0\u7684\u4fa7\u8fb9\u680f\u6dfb\u52a0\u81ea\u5df1\u5b9a\u4e49\u7684\u83dc\u5355\u3002<\/p>\n<h4 id=\"title-0\" style=\"margin: 26px auto 10px; padding: 0px; color: #008800; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u4e00\u3001\u6dfb\u52a0\u9876\u7ea7\u83dc\u5355<\/h4>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u5f80WordPress\u540e\u53f0\u6dfb\u52a0\u4fa7\u8fb9\u680f\u83dc\u5355\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u4e4b\u524d\u4f60\u53ef\u80fd\u7528\u8fc7\u4e00\u4e9b\u63d2\u4ef6\u6216\u8005\u4e00\u4e9b\u4e3b\u9898\uff0c\u5b83\u4eec\u63d0\u4f9b\u4e86\u5c5e\u4e8e\u81ea\u5df1\u7684\u4e00\u4e2a\u83dc\u5355\uff0c\u70b9\u51fb\u8fdb\u5165\u8fd9\u4e2a\u83dc\u5355\u53ef\u4ee5\u8bbe\u7f6e\u63d2\u4ef6\u6216\u4e3b\u9898\u7684\u9009\u9879\uff0c\u6216\u8005\u7ed9\u4f7f\u7528\u63d0\u4f9b\u4e00\u4e9b\u4f7f\u7528\u8bf4\u660e\uff0c\u8fd9\u5927\u5927\u6269\u5c55\u4e86WordPress\u7684\u529f\u80fd\uff0c\u4e5f\u65b9\u4fbf\u7528\u6237\u53bb\u4f7f\u7528\u8fd9\u4e9b\u63d2\u4ef6\u6216\u4e3b\u9898\uff0c\u4f55\u4e50\u800c\u4e0d\u4e3a\u5462\uff1f\u5176\u5b9e\u6211\u4eec\u5728\u505a\u4e00\u4e9bWordPress\u4e3b\u9898\u7684\u65f6\u5019\uff0cWordPress\u63d0\u4f9b\u7684\u83dc\u5355\u4ec5\u9650\u4e8e\u8bbe\u7f6eWordPress\u672c\u8eab\u81ea\u5e26\u7684\u529f\u80fd\uff0c\u5f53WordPress\u7684\u529f\u80fd\u88ab\u6269\u5c55\u540e\uff0c\u8fd9\u4e9b\u81ea\u5e26\u7684\u83dc\u5355\u5df2\u7ecf\u4e0d\u80fd\u6ee1\u8db3\u6211\u4eec\u7684\u8981\u6c42\u4e86\uff0c\u6240\u4ee5\u6dfb\u52a0\u81ea\u5b9a\u4e49\u83dc\u5355\u4e5f\u6210\u4e86WordPress\u4e3b\u9898\u5f00\u53d1\u8005\u7684\u4e00\u9879\u8feb\u5207\u9700\u6c42\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u6dfb\u52a0WordPress\u9876\u7ea7\u7ba1\u7406\u83dc\u5355\u5176\u5b9e\u4e5f\u662f\u4e00\u4ef6\u975e\u5e38\u7b80\u5355\u7684\u4e8b\u60c5\uff0c\u4f7f\u7528\u4e24\u4e2aWordPress\u5185\u7f6e\u51fd\u6570\u5c31\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898\uff0c\u5206\u522b\u662f<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"add_menu_page\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/add_menu_page\" target=\"_blank\">add_menu_page()<\/a>\u548c<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"add_action\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/add_action\" target=\"_blank\">add_action()<\/a>\uff0c\u4e0b\u9762\u6211\u63d0\u4f9b\u4e00\u4e2aphp\u793a\u4f8b\u4ee3\u7801\uff0c\u6dfb\u52a0\u5230\u4e3b\u9898\u76ee\u5f55\u4e0b\u7684functions.php\u4e2d\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<div class=\"codecolorer-container php default\" style=\"margin: 0px 0px 10px; padding: 0px; width: 606px; clear: both; border: 1px solid #e7e5dc; font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; overflow-x: auto; white-space: nowrap; table-layout: fixed; background-color: #f8f8f8;\">\n<table style=\"font-size: 13px; line-height: 1.4em; border-spacing: 0px; border-collapse: collapse; border: 0px;\">\n<tbody style=\"line-height: 1.4em;\">\n<tr style=\"line-height: 1.4em;\">\n<td class=\"line-numbers\" style=\"font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 5px; text-align: right; color: #888888; border-right-width: 3px !important; border-right-style: solid !important; border-right-color: #6ce26c !important; background-color: #e7e5dc;\">\n<div style=\"margin: 0px; padding: 0px 0px 15px; line-height: 1.4em; width: 23px;\">1<br style=\"line-height: 1.4em;\" \/><br \/>\n2<br style=\"line-height: 1.4em;\" \/><br \/>\n3<br style=\"line-height: 1.4em;\" \/><br \/>\n4<br style=\"line-height: 1.4em;\" \/><br \/>\n5<br style=\"line-height: 1.4em;\" \/><br \/>\n6<br style=\"line-height: 1.4em;\" \/><br \/>\n7<br style=\"line-height: 1.4em;\" \/><br \/>\n8<br style=\"line-height: 1.4em;\" \/><br \/>\n9<br style=\"line-height: 1.4em;\" \/><br \/>\n10<br style=\"line-height: 1.4em;\" \/><br \/>\n11<br style=\"line-height: 1.4em;\" \/><br \/>\n12<br style=\"line-height: 1.4em;\" \/><br \/>\n13<br style=\"line-height: 1.4em;\" \/><br \/>\n14<br style=\"line-height: 1.4em;\" \/><br \/>\n15<br style=\"line-height: 1.4em;\" \/><br \/>\n16<br style=\"line-height: 1.4em;\" \/><br \/>\n17<br style=\"line-height: 1.4em;\" \/><br \/>\n18<br style=\"line-height: 1.4em;\" \/><br \/>\n19<br style=\"line-height: 1.4em;\" \/><br \/>\n20<br style=\"line-height: 1.4em;\" \/><br \/>\n21<br style=\"line-height: 1.4em;\" \/><br \/>\n22<br style=\"line-height: 1.4em;\" \/><br \/>\n23<br style=\"line-height: 1.4em;\" \/><br \/>\n24<br style=\"line-height: 1.4em;\" \/><br \/>\n25<br style=\"line-height: 1.4em;\" \/><br \/>\n26<br style=\"line-height: 1.4em;\" \/><br \/>\n27<br style=\"line-height: 1.4em;\" \/><br \/>\n28<br style=\"line-height: 1.4em;\" \/><br \/>\n29<br style=\"line-height: 1.4em;\" \/><br \/>\n30<br style=\"line-height: 1.4em;\" \/><br \/>\n31<br style=\"line-height: 1.4em;\" \/><br \/>\n32<br style=\"line-height: 1.4em;\" \/><br \/>\n33<br style=\"line-height: 1.4em;\" \/><br \/>\n34<\/div>\n<\/td>\n<td style=\"font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 15px;\">\n<div class=\"php codecolorer\" style=\"margin: 0px; padding: 5px; line-height: 1.4em; overflow-x: auto;\"><span class=\"co4\" style=\"line-height: 1.4em; color: #008200;\">\/**<br style=\"line-height: 1.4em;\" \/><br \/>\n* \u540d\u79f0\uff1aWordPress\u540e\u53f0\u6dfb\u52a0\u9876\u7ea7\u83dc\u5355<br style=\"line-height: 1.4em;\" \/><br \/>\n* \u6700\u540e\u4fee\u6539\uff1a2011\u5e7401\u670826\u65e5<br style=\"line-height: 1.4em;\" \/><br \/>\n*\/<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ my_add_pages() \u4e3a &#8216;admin_menu&#8217; \u94a9\u5b50\u7684\u56de\u8c03\u51fd\u6570<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0my_add_pages<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u7b2c\u4e00\u4e2a\u53c2\u6570&#8217;Help page&#8217;\u4e3a\u83dc\u5355\u540d\u79f0\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570&#8217;\u4f7f\u7528\u5e2e\u52a9&#8217;\u4e3a\u83dc\u5355\u6807\u9898<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &#8216;manage_options&#8217; \u53c2\u6570\u4e3a\u7528\u6237\u6743\u9650<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &#8216;my_toplevel_page&#8217; \u53c2\u6570\u7528\u4e8e\u8c03\u7528my_toplevel_page()\u51fd\u6570\uff0c\u6765\u663e\u793a\u83dc\u5355\u5185\u5bb9<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nadd_menu_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Help page&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;\u4f7f\u7528\u5e2e\u52a9&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;manage_options&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"kw4\" style=\"line-height: 1.4em; color: #ff1493;\">__FILE__<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;my_toplevel_page&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"br0\" style=\"line-height: 1.4em;\">}<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ my_toplevel_page() \u7528\u4e8e\u663e\u793a\u83dc\u5355\u7684\u5185\u5bb9\uff0c\u586b\u5199\u83dc\u5355\u9875\u9762\u7684HTML\u4ee3\u7801\u5373\u53ef<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0my_toplevel_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">echo<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;<br style=\"line-height: 1.4em;\" \/><br \/>\n\u8fd9\u91cc\u586b\u83dc\u5355\u9875\u9762\u7684HTML\u4ee3\u7801<br style=\"line-height: 1.4em;\" \/><br \/>\n&#8216;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u5982\u4ee5\u4e0b\u793a\u4f8b\u4ee3\u7801\u3002 wrap \u7c7b\u662fWordPress\u6784\u5efa\u597d\u7684css\u7c7b\uff0c\u53ef\u4ee5\u5728\u4f60\u7684HTML\u4ee3\u7801\u4e2d\u4f7f\u7528<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"coMULTI\" style=\"line-height: 1.4em; color: #008200;\">\/*<br style=\"line-height: 1.4em;\" \/><br \/>\necho &#8216;<br style=\"line-height: 1.4em;\" \/><br \/>\n&lt;div class=&#8221;wrap&#8221;&gt;<br style=\"line-height: 1.4em;\" \/><br \/>\n&lt;h2&gt;\u4f7f\u7528\u5e2e\u52a9&lt;\/h2&gt;<br style=\"line-height: 1.4em;\" \/><br \/>\n&lt;p&gt;\u8fd9\u91cc\u662f\u4f7f\u7528\u5e2e\u52a9\uff0c\u901a\u8fc7\u9605\u8bfb\u672c\u6587\u4f60\u5c06\u4e86\u89e3\u672c\u7a0b\u5e8f\u7684\u4f7f\u7528\uff01\u6709\u4e8b\u8bf7&lt;a href=&#8221;#&#8221;&gt;\u4e0e\u6211\u8054\u7cfb&lt;\/a&gt;&lt;\/p&gt;<br style=\"line-height: 1.4em;\" \/><br \/>\n&lt;\/div&gt;<br style=\"line-height: 1.4em;\" \/><br \/>\n&#8216;;<br style=\"line-height: 1.4em;\" \/><br \/>\n*\/<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"br0\" style=\"line-height: 1.4em;\">}<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u901a\u8fc7add_action\u6765\u81ea\u52a8\u8c03\u7528my_add_pages\u51fd\u6570<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nadd_action<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;admin_menu&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;my_add_pages&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0a\u9762\u7684\u4ee3\u7801\u6ce8\u91ca\u5df2\u7ecf\u6bd4\u8f83\u6e05\u6670\u7684\u4ecb\u7ecd\u4e86\u4e3b\u8981\u5185\u5bb9\uff0c\u4e0b\u9762\u6211\u518d\u8865\u5145\u4e00\u70b9\uff0c\u5173\u4e8eadd_menu_page\u7684\u7b2c\u4e09\u4e2a\u53c2\u6570\uff0c\u4e0a\u9762\u4ee3\u7801\u4e2d\u4f20\u9012\u4e86\u00a0<strong>manage_options<\/strong>\u00a0\u8fd9\u4e2a\u503c\uff0c\u8fd9\u4e2a\u53c2\u6570\u503c\u4e3a\u7528\u6237\u6743\u9650\uff0c\u4e5f\u5c31\u662f\u8bf4\u53ea\u5f53\u5f53\u524d\u5df2\u767b\u5f55\u7684\u7528\u6237\u5177\u6709<strong>manage_options<\/strong>\u8fd9\u9879\u6743\u9650\u65f6\uff0c\u624d\u4f1a\u5728\u540e\u53f0\u4fa7\u8fb9\u680f\u663e\u793a\u4f60\u6dfb\u52a0\u7684\u8fd9\u4e2a\u83dc\u5355\u3002\u9700\u8981\u63d0\u9192\u7684\u662f\uff0c\u8fd9\u4e2a\u662f\u6743\u9650\u53c2\u6570\u5728WordPress 3.0\u4e2d\u5df2\u88ab\u91cd\u65b0\u5b9a\u4e49\uff0c\u4e4b\u524d\u7248\u672c\u53ef\u4ee5\u5f80\u8fd9\u4e2a\u53c2\u6570\u4f20\u9012\u7528\u6237\u7b49\u7ea7(1-10)\uff0c\u4f46\u662f\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662f3.0\u4ee5\u540e\u7684\u7248\u672c\uff0c\u8bf7\u4f20\u9012\u7528\u6237\u6743\u9650\u503c\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u5173\u4e8e\u5404\u4e2a\u7528\u6237\u89d2\u8272\u6240\u5177\u6709\u7684\u6743\u9650\uff0c\u53ef\u4ee5\u53c2\u770b\u8fd9\u4e2a\u5bf9\u5e94\u5173\u7cfb\u8868\uff1a<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"Capability vs. Role Table\" href=\"http:\/\/codex.wordpress.org\/Roles_and_Capabilities#Capability_vs._Role_Table\" target=\"_blank\">Capability vs. Role Table<\/a>\uff0c\u6a2a\u5750\u6807\u662f\u7528\u6237\u89d2\u8272\uff0c\u7eb5\u5750\u6807\u662f\u7528\u6237\u6743\u9650\uff0c\u4e2d\u95f4\u84dd\u8272\u9ad8\u4eae\u90e8\u5206\u4e3a\u5404\u4e2a\u89d2\u8272\u6240\u62e5\u6709\u7684\u6743\u9650\uff0c\u82f1\u6587\u4e5f\u6bd4\u8f83\u597d\u7406\u89e3\uff0c\u4e0d\u61c2\u53ef\u4ee5\u627e\u5728\u7ebf\u7ffb\u8bd1\u3002\u6700\u540e\u4e0a\u5f20\u56fe\u7247\uff0c\u6dfb\u52a0\u4ee5\u4e0a\u4ee3\u7801\u540e\uff0c\u53ef\u4ee5\u770b\u5230\u540e\u53f0\u591a\u4e86\u4e00\u4e2a\u00a0<strong>\u4f7f\u7528\u5e2e\u52a9<\/strong>\u00a0\u7684\u9876\u7ea7\u83dc\u5355\uff1a<\/p>\n<div class=\"sorting\" style=\"margin: 15px auto 39px; padding: 20px 10px; border: 1px solid #dfdfdf; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px; background: #f9f9f9;\">\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding-top: 10px; padding-bottom: 0px; text-indent: 2em; line-height: 22px; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" style=\"border: 0px; max-width: 600px;\" alt=\"WordPress\u6dfb\u52a0\u83dc\u5355\" src=\"http:\/\/www.wpadmin.cn\/blog\/wp-content\/uploads\/2014\/09\/677a5d06239d5a7abeb6b2b9720be4e6.png\" width=\"156\" height=\"196\" \/><\/p>\n<\/div>\n<h4 id=\"title-1\" style=\"margin: 26px auto 10px; padding: 0px; color: #008800; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u4e8c\u3001\u6dfb\u52a0\u4fa7\u8fb9\u680f\u5b50\u83dc\u5355<\/h4>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u6240\u6709\u7684\u4fa7\u8fb9\u680f\u5b50\u83dc\u5355\uff0c\u4e5f\u5c31\u662f\u5728WordPress\u73b0\u6709\u7684\u83dc\u5355\u4e2d\uff0c\u6dfb\u52a0\u5bf9\u5e94\u7684\u5b50\u83dc\u5355\uff0c\u5982\u5f80<strong>\u5de5\u5177<\/strong>\u83dc\u5355\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u5b50\u83dc\u5355<strong>\u5907\u4efd<\/strong>\uff1a<\/p>\n<div class=\"sorting\" style=\"margin: 15px auto 39px; padding: 20px 10px; border: 1px solid #dfdfdf; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px; background: #f9f9f9;\">\n<p style=\"margin-top: 0px; margin-bottom: 0px; padding-top: 10px; padding-bottom: 0px; text-indent: 2em; line-height: 22px; text-align: center;\"><img decoding=\"async\" loading=\"lazy\" style=\"border: 0px; max-width: 600px;\" alt=\"WordPress\u540e\u53f0\u6dfb\u52a0\u5b50\u83dc\u5355\" src=\"http:\/\/www.wpadmin.cn\/blog\/wp-content\/uploads\/2014\/09\/7662837116dd5f902c5934e710b051c4.png\" width=\"152\" height=\"246\" \/><\/p>\n<\/div>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u4ee5\u4e0b\u662fphp\u793a\u4f8b\u4ee3\u7801\uff0c\u6dfb\u52a0\u5230\u4e3b\u9898\u76ee\u5f55\u4e0b\u7684functions.php\u4e2d\u5c31\u53ef\u4ee5\u4e86\uff1a<\/p>\n<div class=\"codecolorer-container php default\" style=\"margin: 0px 0px 10px; padding: 0px; width: 606px; clear: both; border: 1px solid #e7e5dc; font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; overflow-x: auto; white-space: nowrap; table-layout: fixed; background-color: #f8f8f8;\">\n<table style=\"font-size: 13px; line-height: 1.4em; border-spacing: 0px; border-collapse: collapse; border: 0px;\">\n<tbody style=\"line-height: 1.4em;\">\n<tr style=\"line-height: 1.4em;\">\n<td class=\"line-numbers\" style=\"font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 5px; text-align: right; color: #888888; border-right-width: 3px !important; border-right-style: solid !important; border-right-color: #6ce26c !important; background-color: #e7e5dc;\">\n<div style=\"margin: 0px; padding: 0px 0px 15px; line-height: 1.4em; width: 23px;\">1<br style=\"line-height: 1.4em;\" \/><br \/>\n2<br style=\"line-height: 1.4em;\" \/><br \/>\n3<br style=\"line-height: 1.4em;\" \/><br \/>\n4<br style=\"line-height: 1.4em;\" \/><br \/>\n5<br style=\"line-height: 1.4em;\" \/><br \/>\n6<br style=\"line-height: 1.4em;\" \/><br \/>\n7<br style=\"line-height: 1.4em;\" \/><br \/>\n8<br style=\"line-height: 1.4em;\" \/><br \/>\n9<br style=\"line-height: 1.4em;\" \/><br \/>\n10<br style=\"line-height: 1.4em;\" \/><br \/>\n11<br style=\"line-height: 1.4em;\" \/><br \/>\n12<br style=\"line-height: 1.4em;\" \/><br \/>\n13<br style=\"line-height: 1.4em;\" \/><br \/>\n14<br style=\"line-height: 1.4em;\" \/><br \/>\n15<br style=\"line-height: 1.4em;\" \/><br \/>\n16<br style=\"line-height: 1.4em;\" \/><br \/>\n17<br style=\"line-height: 1.4em;\" \/><br \/>\n18<br style=\"line-height: 1.4em;\" \/><br \/>\n19<br style=\"line-height: 1.4em;\" \/><br \/>\n20<br style=\"line-height: 1.4em;\" \/><br \/>\n21<br style=\"line-height: 1.4em;\" \/><br \/>\n22<br style=\"line-height: 1.4em;\" \/><br \/>\n23<br style=\"line-height: 1.4em;\" \/><br \/>\n24<br style=\"line-height: 1.4em;\" \/><br \/>\n25<br style=\"line-height: 1.4em;\" \/><br \/>\n26<br style=\"line-height: 1.4em;\" \/><br \/>\n27<\/div>\n<\/td>\n<td style=\"font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 15px;\">\n<div class=\"php codecolorer\" style=\"margin: 0px; padding: 5px; line-height: 1.4em; overflow-x: auto;\"><span class=\"co4\" style=\"line-height: 1.4em; color: #008200;\">\/**<br style=\"line-height: 1.4em;\" \/><br \/>\n* \u540d\u79f0\uff1aWordPress\u540e\u53f0\u6dfb\u52a0\u4fa7\u8fb9\u680f\u5b50\u83dc\u5355<br style=\"line-height: 1.4em;\" \/><br style=\"line-height: 1.4em;\" \/><br \/>\n* \u6700\u540e\u4fee\u6539\uff1a2011\u5e7401\u670826\u65e5<br style=\"line-height: 1.4em;\" \/><br \/>\n*\/<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0my_add_submenu<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nadd_submenu_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;tools.php&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;my_backup&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;\u5907\u4efd&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;manage_options&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;backup-page&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;my_magic_function&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"br0\" style=\"line-height: 1.4em;\">}<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u7528\u4e8e\u663e\u793a\u83dc\u5355\u7684\u5185\u5bb9\uff0c\u586b\u5199\u83dc\u5355\u9875\u9762\u7684HTML\u4ee3\u7801\u5373\u53ef<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0my_magic_function<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">echo<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;<br style=\"line-height: 1.4em;\" \/><br \/>\n\u8fd9\u91cc\u586b\u83dc\u5355\u9875\u9762\u7684HTML\u4ee3\u7801<br style=\"line-height: 1.4em;\" \/><br \/>\n&#8216;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ echo &#8216;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &lt;div class=&#8221;wrap&#8221;&gt;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &lt;h2&gt;\u5907\u4efd&lt;\/h2&gt;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &lt;p&gt;\u8fd9\u91cc\u53ef\u4ee5\u5907\u4efd\u4f60\u7684\u535a\u5ba2\u6570\u636e\u5e93\u3002&lt;\/a&gt;&lt;\/p&gt;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &lt;\/div&gt;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ &#8216;;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"br0\" style=\"line-height: 1.4em;\">}<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u901a\u8fc7add_action\u6765\u81ea\u52a8\u8c03\u7528my_add_submenu\u51fd\u6570<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nadd_action<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;admin_menu&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;my_add_submenu&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u6dfb\u52a0\u5b50\u83dc\u5355\u4e3b\u8981\u901a\u8fc7<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"\/add_submenu_page\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/add_submenu_page\" target=\"_blank\">add_submenu_page()<\/a>\u51fd\u6570\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e2a\u51fd\u6570\u6709\u5f88\u591a\u53c2\u6570\uff0c\u4e0b\u9762\u6211\u6765\u4ecb\u7ecd\u8fd9\u51e0\u4e2a\u53c2\u6570\u7684\u4f5c\u7528\u3002\u4e0b\u9762\u662f\u8be5\u51fd\u6570\u7684\u539f\u578b\uff1a<\/p>\n<div class=\"codecolorer-container php default\" style=\"margin: 0px 0px 10px; padding: 0px; width: 606px; clear: both; border: 1px solid #e7e5dc; font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; overflow-x: auto; white-space: nowrap; table-layout: fixed; background-color: #f8f8f8;\">\n<table style=\"font-size: 13px; line-height: 1.4em; border-spacing: 0px; border-collapse: collapse; border: 0px;\">\n<tbody style=\"line-height: 1.4em;\">\n<tr style=\"line-height: 1.4em;\">\n<td class=\"line-numbers\" style=\"font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding: 5px; text-align: right; color: #888888; border-right-width: 3px !important; border-right-style: solid !important; border-right-color: #6ce26c !important; background-color: #e7e5dc;\">\n<div style=\"margin: 0px; padding: 0px 0px 15px; line-height: 1.4em; width: 23px;\">1<\/div>\n<\/td>\n<td style=\"font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; white-space: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 15px;\">\n<div class=\"php codecolorer\" style=\"margin: 0px; padding: 5px; line-height: 1.4em; overflow-x: auto;\">add_submenu_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$parent_slug<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$page_title<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu_title<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$capability<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu_slug<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$function<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\"><strong>$parent_slug<\/strong><\/p>\n<p>\u8fd9\u4e2a\u53c2\u6570\u4e3aWordPress\u5185\u7f6e\u83dc\u5355\u7684\u6587\u4ef6\u540d\u79f0\u6216\u7f29\u7565\u540d\uff0c\u8fd9\u91cc\u6211\u4eec\u901a\u5e38\u91c7\u7528\u83dc\u5355\u6587\u4ef6\u540d\u7684\u65b9\u5f0f\u3002\u4f20\u9012\u8fd9\u4e2a\u53c2\u6570\uff0c\u5c31\u8bf4\u660e\u8981\u5f80\u8fd9\u4e2a\u9876\u7ea7\u83dc\u5355\u6dfb\u52a0\u5b50\u83dc\u5355\uff0c\u4ee5\u4e0a\u793a\u4f8b\u4ee3\u7801\u4e2d\u4f20\u9012\u7684\u503c\u4e3a tools.php \uff0c\u5bf9\u5e94\u5de5\u5177\u9876\u7ea7\u83dc\u5355\uff0c\u4e0b\u9762\u63d0\u4f9b\u8fd9\u4e2a\u53c2\u6570\u7684\u6240\u6709\u503c\u53ca\u5176\u5bf9\u5e94\u7684\u9876\u7ea7\u83dc\u5355\uff1a<\/p>\n<ul style=\"margin: 0px; padding: 0px 0px 20px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>index.php<\/strong>\uff1a\u63a7\u5236\u677f<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>edit.php<\/strong>\uff1a\u6587\u7ae0<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>upload.php<\/strong>\uff1a\u5a92\u4f53<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>link-manager.php<\/strong>\uff1a\u94fe\u63a5<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>edit.php?post_type=page<\/strong>\uff1a\u9875\u9762<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>edit-comments.php<\/strong>\uff1a\u8bc4\u8bba<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>themes.php<\/strong>\uff1a\u4e3b\u9898<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>plugins.php<\/strong>\uff1a\u63d2\u4ef6<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>users.php<\/strong>\uff1a\u7528\u6237<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>tools.php<\/strong>\uff1a\u5de5\u5177<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\"><strong>options-general.php<\/strong>\uff1a\u8bbe\u7f6e<\/li>\n<\/ul>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\"><strong>$page_title<\/strong><\/p>\n<p>\u8fd9\u4e2a\u53c2\u6570\u662f\u5b50\u83dc\u5355\u7684\u6807\u9898\uff0c\u5c06\u4f1a\u663e\u793a\u5728\u6d4f\u89c8\u5668\u7684\u6807\u9898\u680f\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\"><strong>$menu_title<\/strong><\/p>\n<p>\u8fd9\u4e2a\u662f\u5b50\u83dc\u5355\u7684\u540d\u79f0\uff0c\u5c06\u4f1a\u663e\u793a\u5728\u4fa7\u8fb9\u680f<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\"><strong>$capability<\/strong><\/p>\n<p>\u7528\u6237\u6743\u9650\uff0c\u8fd9\u4e2a\u5b9a\u4e49\u4e86\u5177\u6709\u54ea\u4e9b\u6743\u9650\u7684\u7528\u6237\u4f1a\u770b\u5230\u8fd9\u4e2a\u5b50\u83dc\u5355\uff0c\u5177\u4f53\u7684\u53c2\u6570\u503c\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0a\u9762\u7b2c\u4e00\u90e8\u5206\u7684\u9876\u7ea7\u83dc\u5355\u7684\u8bf4\u660e\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\"><strong>$menu_slug<\/strong><\/p>\n<p>\u5b50\u83dc\u5355\u7684\u7f29\u7565\u540d\uff0c\u8bf7\u4f7f\u7528\u4e00\u4e2a\u552f\u4e00\u7684\u540d\u79f0\uff0c\u82f1\u6587\u5f62\u5f0f\u3002<\/p>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\"><strong>$function<\/strong><\/p>\n<p>\u6240\u6709\u8c03\u7528\u7684\u51fd\u6570\u540d\u79f0\uff0c\u901a\u8fc7\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\u6765\u663e\u793a\u8fd9\u4e2a\u5b50\u83dc\u5355\u9875\u9762\u7684\u5185\u5bb9<\/p>\n<h4 id=\"title-2\" style=\"margin: 26px auto 10px; padding: 0px; color: #008800; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u7ed3\u8bed<\/h4>\n<p style=\"margin-top: 0px; margin-bottom: 20px; padding-top: 0px; padding-bottom: 0px; color: #555555; font-family: 'Microsoft Yahei', Tahoma, Arial, SimSun, 'Hiragino Sans GB', PMingLiu, Verdana, sans-serif; font-size: 14px; line-height: 22.399999618530273px;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u672c\u6b21\u7684\u6559\u7a0b\u5230\u6b64\u5c31\u7ed3\u675f\u4e86\uff0c\u8fd9\u90e8\u5206\u5185\u5bb9\u6211\u53ea\u662f\u63d0\u4f9b\u4e86\u6dfb\u52a0\u9876\u7ea7\u83dc\u5355\u548c\u5b50\u83dc\u5355\u7684\u57fa\u672c\u65b9\u6cd5\uff0c\u81f3\u4e8e\u8fd9\u4e2a\u83dc\u5355\u4e2d\u600e\u4e48\u6dfb\u52a0\u9009\u9879\uff0c\u600e\u4e48\u6dfb\u52a0\u5185\u5bb9\uff0c\u600e\u4e48\u5199css\u628a\u9875\u9762\u5f04\u5f97\u5f88\u6f02\u4eae\uff0c\u8fd9\u4e9b\u5c31\u8981\u9760\u4f60\u4eec\u81ea\u5df1\u53bb\u5199html\u548ccss\u4e86\u3002\u76f8\u6bd4\u4e4b\u524d\u7684\u51e0\u4e2a\u6559\u7a0b\uff0c\u672c\u6b21\u6559\u7a0b\u5bf9\u4f60\u7684PHP\u80fd\u529b\u7684\u8981\u6c42\u4e5f\u6709\u6240\u63d0\u9ad8\uff0c\u5982\u679c\u4f60\u4e0d\u4f1aPHP\uff0c\u4f46\u662f\u53c8\u60f3\u641eWordPress\u5f00\u53d1\uff0c\u5efa\u8bae\u4f60\u8fd8\u662f\u5148\u53bb\u5b66\u5b66PHP\u5427\u3002http:\/\/www.ludou.org\/add-admin-menu-in-wordpress.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u662fWordPress\u4f01\u4e1a\u5efa\u7ad9\u7cfb\u5217\u6559\u7a0b\u7684\u7b2c\u4e09\u7bc7\u6587\u7ae0\uff0c\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u5982\u679c\u60f3\u4f60\u5b66\u4e60\u8fd9\u4e2a\u4f01\u4e1a\u5efa\u7ad9\u7684\u7cfb\u5217\u6559\u7a0b\uff0c\u9700\u8981\u4f60\u6709\u4e00\u70b9\u70b9\u7684WordPress\u4e3b\u9898\u6216PHP\u5f00\u53d1\u57fa\u7840\uff0c&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[123],"tags":[140,125,153],"_links":{"self":[{"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/posts\/3404"}],"collection":[{"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/comments?post=3404"}],"version-history":[{"count":0,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/posts\/3404\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/media?parent=3404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/categories?post=3404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/tags?post=3404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}