{"id":3471,"date":"2014-10-28T09:56:47","date_gmt":"2014-10-28T09:56:47","guid":{"rendered":"http:\/\/www.wpadmin.cn\/blog\/?p=3471"},"modified":"2014-10-28T09:56:53","modified_gmt":"2014-10-28T09:56:53","slug":"wordpress%e5%90%8e%e5%8f%b0%e5%88%a0%e9%99%a4%e4%b8%8d%e9%9c%80%e8%a6%81%e7%9a%84%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\/3471.html","title":{"rendered":"WordPress\u540e\u53f0\u5220\u9664\u4e0d\u9700\u8981\u7684\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;\">\u00a0\u672c\u6587\u662fWordPress<span style=\"color: #2970a6;\">\u4f01\u4e1a\u5efa\u7ad9\u7cfb\u5217\u6559\u7a0b<\/span>\u7684\u7b2c\u4e00\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<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;\">\u81ea\u5b9a\u4e49\u540e\u53f0\u7684\u4fa7\u8fb9\u680f\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\u9996\u5148\u8ba9\u6211\u4eec\u770b\u770b\uff0c\u4ec0\u4e48\u662f\u540e\u53f0\u7684\u4fa7\u8fb9\u680f\u83dc\u5355:<\/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=\"\" src=\"http:\/\/www.wpadmin.cn\/blog\/wp-content\/uploads\/2014\/10\/8d6ab84ca2af9fccd4e4048694176ebf.png\" width=\"149\" height=\"319\" \/><\/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\u4e0a\u56fe\u5c31\u662f\u4f7f\u7528\u7ba1\u7406\u5458\u8d26\u53f7\u767b\u9646\u540e\u770b\u5230\u7684\u4fa7\u8fb9\u680f\u6240\u6709\u7684\u83dc\u5355\u9879\uff0cWordPress\u7ed9\u4e0d\u540c\u89d2\u8272\u7684\u7528\u6237\u5b9a\u4e49\u4e86\u4e0d\u540c\u529f\u80fd\u7684\u4f7f\u7528\u6743\u9650\uff0c\u6240\u4ee5\u4e0d\u540c\u89d2\u8272\u7684\u7528\u6237\u540e\u53f0\u6240\u770b\u5230\u4fa7\u8fb9\u680f\u83dc\u5355\u9879\u90fd\u662f\u4e0d\u4e00\u6837\u7684\u3002\u8fd9\u4e2a\u65f6\u5019\u9700\u6c42\u53c8\u6765\u4e86\uff0c\u6709\u4e9b\u65f6\u5019\u5373\u4f7f\u662f\u7ba1\u7406\u5458\uff0c\u90e8\u5206\u83dc\u5355\u4e5f\u662f\u7528\u4e0d\u5230\u4e86\uff0c\u4f8b\u5982\u7528WordPress\u6765\u5efa\u4e00\u4e2a\u4f01\u4e1a\u4ecb\u7ecd\u6027\u7684\u7f51\u7ad9\uff0c\u8be5\u7ad9\u70b9\u6839\u672c\u6ca1\u6709\u6dfb\u52a0\u8bc4\u8bba\u529f\u80fd\uff0c\u90a3\u4e48\u4fa7\u8fb9\u680f\u7684<strong>\u8bc4\u8bba<\/strong>\u83dc\u5355\u662f\u7528\u4e0d\u7740\u7684\uff0c\u5982\u679c\u8ba9\u4f01\u4e1a\u7528\u6237\u770b\u5230\uff0c\u4ed6\u4eec\u4f1a\u611f\u5230\u5f88\u8ff7\u60d1\u3002\u6240\u4ee5\u6700\u597d\u7684\u529e\u6cd5\u662f\uff0c\u6839\u636e\u5b9e\u9645\u60c5\u51b5\uff0c\u628a\u4e0d\u8be5\u6709\u7684\u4fa7\u8fb9\u680f\u7ba1\u7406\u83dc\u5355\u5220\u6389\u3002\u5177\u4f53\u5b9e\u73b0\u529e\u6cd5\u662f\u5728\u5f53\u524d\u4e3b\u9898\u7684functions.php \u7b2c\u4e00\u4e2a &lt;?php \u540e\u9762\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\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<\/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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0remove_menus<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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">global<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$restricted<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">=<\/span>\u00a0<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">array<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Dashboard&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Posts&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Media&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Links&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Pages&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Appearance&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Tools&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Users&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Settings&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Comments&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Plugins&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/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<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/end\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">end<\/span><\/a>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">while<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/prev\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">prev<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">=<\/span>\u00a0<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/explode\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">explode<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216; &#8216;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/key\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">key<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">if<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/strpos\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">strpos<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;&lt;&#8216;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">===<\/span>\u00a0<span class=\"kw4\" style=\"line-height: 1.4em; color: #ff1493;\">FALSE<\/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;\">if<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/in_array\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">in_array<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">!=<\/span>\u00a0<span class=\"kw4\" style=\"line-height: 1.4em; color: #ff1493;\">NULL<\/span>\u00a0?\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">:<\/span><span class=\"st0\" style=\"line-height: 1.4em; color: blue;\">&#8220;&#8221;<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$restricted<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/unset\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">unset<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/key\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">key<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/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<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;\">else<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value2<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">=<\/span>\u00a0<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/explode\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">explode<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;&lt;&#8216;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">if<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/in_array\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">in_array<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value2<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">!=<\/span>\u00a0<span class=\"kw4\" style=\"line-height: 1.4em; color: #ff1493;\">NULL<\/span>\u00a0?\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value2<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">:<\/span><span class=\"st0\" style=\"line-height: 1.4em; color: blue;\">&#8220;&#8221;<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$restricted<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/unset\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">unset<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/key\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">key<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/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<span class=\"br0\" 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<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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">if<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0is_admin<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>\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;\">\/\/ \u5220\u9664\u5de6\u4fa7\u83dc\u5355<\/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;remove_menus&#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><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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;\">\u81ea\u5b9a\u4e49\u8981\u53bb\u9664\u7684\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\u4ee5\u4e0a\u4ee3\u7801\u6838\u5fc3\u90e8\u5206\u662f\u4e00\u4e2a\u51fd\u6570remove_menus()\uff0c\u7136\u540e\u901a\u8fc7WordPress\u7684\u52a8\u4f5c\u63a5\u53e3\u51fd\u6570add_action\u6765\u6267\u884cremove_menus\u51fd\u6570\u3002\u5728remove_menus\u51fd\u6570\u4e2d\uff0c\u901a\u8fc7$restricted\u6570\u7ec4\u6765\u5b9a\u4e49\u9700\u8981\u5220\u9664\u54ea\u4e9b\u83dc\u5355\u9879\uff0c\u4ee5\u4e0a$restricted\u6570\u7ec4\u63d0\u4f9b\u4e86\u5168\u90e8\u83dc\u5355\u9879\uff0c\u4e5f\u5c31\u662f\u8bf4\u5982\u679c\u4f60\u5168\u90e8\u5c06\u4ee5\u4e0a\u4ee3\u7801\u4e0d\u505a\u4fee\u6539\u5730\u590d\u5236\u5230functions.php\uff0c\u90a3\u4f60\u7684WordPress\u540e\u53f0\u5c31\u6ca1\u6709\u4efb\u4f55\u83dc\u5355\u4e86\uff0c\u4f60\u5e94\u8be5\u6839\u636e\u5b9e\u9645\u9700\u8981\u53bb\u9664\u83dc\u5355\uff0c\u4e0b\u9762\u8bb2\u8bb2$restricted\u5404\u4e2a\u6570\u7ec4\u9879\u5bf9\u5e94\u7684\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;\">__(&#8216;Dashboard&#8217;) \uff1a \u63a7\u5236\u677f\u83dc\u5355<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Posts&#8217;) \uff1a \u6587\u7ae0<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Media&#8217;) \uff1a \u5a92\u4f53<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Links&#8217;) \uff1a \u94fe\u63a5<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Pages&#8217;) \uff1a \u9875\u9762<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Comments&#8217;) \uff1a \u8bc4\u8bba<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Appearance&#8217;) \uff1a \u5916\u89c2<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Plugins&#8217;) \uff1a \u63d2\u4ef6<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Users&#8217;) \uff1a \u7528\u6237<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Tools&#8217;) \uff1a \u5de5\u5177<\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">__(&#8216;Settings&#8217;) \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;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u4f8b\u5982\u4f60\u53ea\u60f3\u53bb\u9664<strong>\u8bc4\u8bba<\/strong>\u548c<strong>\u5de5\u5177<\/strong>\u83dc\u5355\uff0c\u4f60\u53ea\u9700\u6539\u5199\u4ee5\u4e0a\u4ee3\u7801\u7b2c3\u884c\u7684$restricted\u6570\u7ec4\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;\"><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$restricted<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">=<\/span>\u00a0<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">array<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Comments&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Tools&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/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<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;\">\u5220\u9664\u4e0d\u5fc5\u8981\u7684\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\u00a0WordPress\u540e\u53f0\u7684\u9876\u7ea7\u83dc\u5355\u4e0b\u9762\u8fd8\u6709\u5b50\u83dc\u5355\uff0c\u5f53\u7136\u6709\u4e9b\u5b50\u83dc\u5355\u662f\u7528\u4e0d\u5230\u7684\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5c06\u5176\u5220\u9664\uff0cWordPress 3.1\u4ee5\u540e\u7684\u7248\u672c\u53ea\u9700\u7528\u5230\u4e00\u4e2a\u51fd\u6570<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"WordPress:remove_submenu_page\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/remove_submenu_page\" target=\"_blank\">remove_submenu_page( $menu_slug, $submenu_slug )<\/a>\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u53c2\u6570\uff0c$menu_slug\u662f\u5b50\u83dc\u5355\u6240\u5728\u9876\u7ea7\u83dc\u5355\u7684\u7f29\u7565\u540d\uff0c$submenu_slug\u4e3a\u5b50\u83dc\u5355\u7684\u7f29\u7565\u540d\uff0c\u90a3\u5982\u4f55\u83b7\u5f97\u8fd9\u4e24\u4e2a\u7f29\u7565\u540d\u5462\uff1f\u4f8b\u5982\uff0c\u70b9\u51fb\u9876\u7ea7\u83dc\u5355<strong>\u8bbe\u7f6e<\/strong>\uff0c\u94fe\u63a5\u5730\u5740\u7c7b\u4f3c\uff1a<\/p>\n<p>http:\/\/example\/wp-admin\/options-general.php<\/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\u90a3\u4e48\u9876\u7ea7\u83dc\u5355<strong>\u8bbe\u7f6e<\/strong>\u7684\u7f29\u7565\u540d\u4e3aoptions-general.php\uff0c\u4e5f\u5c31\u662f\u53bb\u9664http:\/\/example\/wp-admin\/\u540e\u5269\u4e0b\u7684\u4e1c\u897f\uff0c\u4f9d\u6b21\u7c7b\u63a8\uff1b\u63a5\u7740\u70b9\u51fb\u9876\u7ea7\u83dc\u5355<strong>\u8bbe\u7f6e<\/strong>\u4e0b\u9762\u7684\u5b50\u83dc\u5355<strong>\u9690\u79c1<\/strong>\uff0c\u4f1a\u6253\u5f00\u4ee5\u4e0b\u7f51\u5740\uff1a<\/p>\n<p>http:\/\/example\/wp-admin\/options-privacy.php<\/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\u90a3\u4e48\u5b50\u83dc\u5355<strong>\u9690\u79c1<\/strong>\u7684\u7f29\u7565\u540d\u4e3aoptions-privacy.php\uff0c\u597d\u4e86\uff0c\u5c31\u8fd9\u4e48\u7b80\u5355\uff0c\u4e0b\u9762\u662f\u5b9e\u73b0\u4ee3\u7801\uff0c\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<\/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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0remove_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 \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u5220\u9664&#8221;\u8bbe\u7f6e&#8221;\u4e0b\u9762\u7684\u5b50\u83dc\u5355&#8221;\u9690\u79c1&#8221;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nremove_submenu_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;options-general.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;options-privacy.php&#8217;<\/span>\u00a0<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<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/ \u5220\u9664&#8221;\u5916\u89c2&#8221;\u4e0b\u9762\u7684\u5b50\u83dc\u5355&#8221;\u7f16\u8f91&#8221;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nremove_submenu_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;themes.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;theme-editor.php&#8217;<\/span>\u00a0<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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">if<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0is_admin<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>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">{<\/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_init&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;remove_submenu&#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><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h4 id=\"title-3\" 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;\">\u6839\u636e\u7528\u6237\u89d2\u8272\u53bb\u9664\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\u5982\u679c\u4f60\u60f3\u6309\u7528\u6237\u89d2\u8272\u6765\u53bb\u9664\u76f8\u5e94\u7684\u4fa7\u8fb9\u680f\u83dc\u5355\uff0c\u90a3\u5c31\u518d\u505a\u4e00\u4e0b\u7528\u6237\u7b49\u7ea7\u7684\u5224\u65ad\u5c31\u53ef\u4ee5\u4e86\uff0c\u7ed9\u7b2c11\u884c\u7684add_action\u6dfb\u52a0\u5224\u65ad\uff0c\u6539\u5199\u6210\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<\/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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0remove_menus<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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">global<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/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;\">\/\/ \u8fd9\u91cc$restricted\u8bbe\u7f6e\u4e86\u8bc4\u8bba\u548c\u5de5\u5177\u83dc\u5355<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$restricted<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">=<\/span>\u00a0<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/array\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">array<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Comments&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0__<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;Tools&#8217;<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/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<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/end\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">end<\/span><\/a>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">while<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/prev\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">prev<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">=<\/span>\u00a0<a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/explode\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">explode<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216; &#8216;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/key\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">key<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/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=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">if<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/in_array\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">in_array<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">!=<\/span>\u00a0<span class=\"kw4\" style=\"line-height: 1.4em; color: #ff1493;\">NULL<\/span>?<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$value<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><span class=\"nu0\" style=\"line-height: 1.4em;\">0<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">:<\/span><span class=\"st0\" style=\"line-height: 1.4em; color: blue;\">&#8220;&#8221;<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$restricted<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">{<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/unset\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">unset<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">[<\/span><a style=\"outline: none; color: #2970a6; text-decoration: none; line-height: 1.4em;\" href=\"http:\/\/www.php.net\/key\"><span class=\"kw3\" style=\"line-height: 1.4em; color: #ff1493;\">key<\/span><\/a><span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$menu<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">]<\/span><span class=\"br0\" style=\"line-height: 1.4em;\">)<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><span class=\"br0\" 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<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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">function<\/span>\u00a0remove_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 \/>\nremove_submenu_page<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span>\u00a0<span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;options-general.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;options-privacy.php&#8217;<\/span>\u00a0<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=\"kw2\" style=\"line-height: 1.4em; color: #006699;\">global<\/span>\u00a0<span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$current_user<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">;<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\nget_currentuserinfo<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/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<br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"co1\" style=\"line-height: 1.4em; color: #008200;\">\/\/\u5982\u679c\u5f53\u524d\u7528\u6237\u7684\u7b49\u7ea7\u5c0f\u4e8e3\uff0c\u90a3\u4e48\u5c31\u5220\u9664\u5bf9\u5e94\u7684\u83dc\u5355<\/span><br style=\"line-height: 1.4em;\" \/><br \/>\n<span class=\"kw1\" style=\"line-height: 1.4em; color: #006699;\">if<\/span>\u00a0<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"re0\" style=\"line-height: 1.4em; color: #aa7700;\">$current_user<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">-&gt;<\/span><span class=\"me1\" style=\"line-height: 1.4em; color: #0080ff;\">user_level<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">&lt;<\/span>\u00a0<span class=\"nu0\" style=\"line-height: 1.4em;\">3<\/span>\u00a0<span class=\"sy0\" style=\"line-height: 1.4em;\">&amp;&amp;<\/span>\u00a0is_admin<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><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_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;remove_menus&#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 \/>\nadd_action<span class=\"br0\" style=\"line-height: 1.4em;\">(<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;admin_init&#8217;<\/span><span class=\"sy0\" style=\"line-height: 1.4em;\">,<\/span><span class=\"st_h\" style=\"line-height: 1.4em; color: blue;\">&#8216;remove_submenu&#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><\/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\u5728WordPress\u540e\u53f0 \u2013 \u7528\u6237\u90a3\u91cc\uff0c\u7ba1\u7406\u5458\u53ef\u4ee5\u67e5\u770b \/ \u7f16\u8f91\u7528\u6237\u7684\u89d2\u8272\uff0c\u4ee5\u4e0b\u662f\u7528\u6237\u89d2\u8272\u548c\u5176\u7b49\u7ea7\u7684\u5bf9\u5e94\u5173\u7cfb\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;\">0 \u7ea7\u5bf9\u5e94\u00a0<strong>\u8ba2\u9605\u8005<\/strong><\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">1 \u7ea7\u5bf9\u5e94\u00a0<strong>\u6295\u7a3f\u8005<\/strong><\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">2 \u2013 4 \u7ea7\u5bf9\u5e94\u00a0<strong>\u4f5c\u8005<\/strong><\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">5 \u2013 7 \u7ea7\u5bf9\u5e94\u00a0<strong>\u7f16\u8f91<\/strong><\/li>\n<li style=\"margin: 0px 0px 0px 38px; padding: 0px;\">8 \u2013 10 \u7ea7\u5bf9\u5e94\u00a0<strong>\u7ba1\u7406\u5458<\/strong><\/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;\">\u00a0\u00a0\u00a0\u00a0\u00a0WordPress 3.0 \u4e4b\u540e\u5c06\u9010\u6e10\u5f03\u7528\u7528\u6237\u6570\u5b57\u7b49\u7ea7\uff0c\u63a8\u8350\u4f7f<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\">\u7528\u6237\u6743\u9650<\/a>\uff0c\u53ef\u4ee5\u7528\u51fd\u6570<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"WordPress current_user_can\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/current_user_can\" target=\"_blank\">current_user_can()<\/a>\u6765\u5224\u65ad\u7528\u6237\u6743\u9650\u3002<\/p>\n<h4 id=\"title-4\" 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;\">\u4f7f\u7528\u8d85\u7b80\u5355\u7684\u63d2\u4ef6<\/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\u4e0b\u9762\u63a8\u8350\u4e00\u4e2a\u4f7f\u7528\u8d85\u7b80\u5355\u7684\u63d2\u4ef6\uff0c\u4e0d\u9700\u8981\u4efb\u4f55\u7f16\u7801\uff0c\u53ea\u9700\u62d6\u62d6\u9f20\u6807\u5c31\u53ef\u4ee5\u5b9e\u73b0\u4e0a\u9762\u6240\u8bf4\u7684\u5927\u90e8\u5206\u529f\u80fd\u3002\u63d2\u4ef6\u540d\u79f0\u662f\uff1a<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"WordPress plugin:Admin Menu Editor\" href=\"http:\/\/wordpress.org\/extend\/plugins\/admin-menu-editor\/\" target=\"_blank\">Admin Menu Editor<\/a>\uff0c\u53ef\u4ee5<a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"WordPress plugin:Admin Menu Editor\" href=\"http:\/\/wordpress.org\/extend\/plugins\/admin-menu-editor\/\" target=\"_blank\">\u70b9\u6b64<\/a>\u524d\u5f80WordPress\u5b98\u65b9\u4e0b\u8f7d\uff0c\u542f\u7528\u540e\u5230\u8bbe\u7f6e \u2013 Menu Editor\uff0c\u5c31\u53ef\u4ee5\u7f16\u8f91\u540e\u53f0\u7684\u83dc\u5355\u4e86\uff0c\u8fd8\u53ef\u4ee5\u6dfb\u52a0\u5916\u94fe\u83dc\u5355\uff0c\u53ef\u4ee5\u8c03\u6574\u83dc\u5355\u987a\u5e8f\u7b49\u7b49\uff0c\u5269\u4e0b\u7684\u4f60\u81ea\u5df1\u4f53\u9a8c\u5427\uff01<\/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;\">\u66f4\u591a\u7684WordPress\u83dc\u5355\u9879\u8bbe\u7f6e\uff0c\u8bf7\u9605\u8bfb\u4ee5\u4e0b\u6587\u7ae0(\u82f1\u6587)\uff1a<\/p>\n<p><a style=\"outline: none; color: #2970a6; text-decoration: none;\" title=\"Remove WordPress Admin Menu Without Affecting WordPress Core System\" href=\"http:\/\/hungred.com\/how-to\/remove-wordpress-admin-menu-affecting-wordpress-core-system\/\" target=\"_blank\">Remove WordPress Admin Menu Without Affecting WordPress Core System<\/a><\/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;\">http:\/\/www.ludou.org\/remove-admin-menu-in-wordpress.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u672c\u6587\u662fWordPress\u4f01\u4e1a\u5efa\u7ad9\u7cfb\u5217\u6559\u7a0b\u7684\u7b2c\u4e00\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&#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,170],"_links":{"self":[{"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/posts\/3471"}],"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=3471"}],"version-history":[{"count":0,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/posts\/3471\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/media?parent=3471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/categories?post=3471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wpadmin.cn\/blog\/wp-json\/wp\/v2\/tags?post=3471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}