<span style="color: #666666; font-style: italic;">// 自定义排序WordPress后台管理菜单 (在 WP 3.5.2 测试通过) From wpdaxue.com</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_menu_order<span style="color: #009900;">(</span><span style="color: #000088;">$menu_ord</span><span style="color: #009900;">)</span> <span style="color: #009900;">{</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">(</span><span style="color: #339933;">!</span><span style="color: #000088;">$menu_ord</span><span style="color: #009900;">)</span> <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #990000;">array</span><span style="color: #009900;">(</span>
<span style="color: #0000ff;">'index.php'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// “仪表盘”菜单</span>
<span style="color: #0000ff;">'edit.php?post_type=question'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// 自定义文章类型的菜单</span>
<span style="color: #0000ff;">'edit-comments.php'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//“评论”菜单</span>
<span style="color: #0000ff;">'upload.php'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//“多媒体”菜单</span>
<span style="color: #0000ff;">'edit.php?post_type=cmp_slider'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//自定义文章类型的菜单</span>
<span style="color: #0000ff;">'plugins.php'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//“插件”菜单</span>
<span style="color: #0000ff;">'themes.php'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//“主题”菜单</span>
<span style="color: #0000ff;">'edit.php?post_type=page'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// “页面”菜单</span>
<span style="color: #0000ff;">'edit.php'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// “文章”菜单</span>
<span style="color: #009900;">)</span><span style="color: #339933;">;</span>
<span style="color: #009900;">}</span>
add_filter<span style="color: #009900;">(</span><span style="color: #0000ff;">'custom_menu_order'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_menu_order'</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
add_filter<span style="color: #009900;">(</span><span style="color: #0000ff;">'menu_order'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_menu_order'</span><span style="color: #009900;">)</span><span style="color: #339933;">;</span>
请先
!