2

我找到了一种添加“仪表板小部件”的方法,但这不是我想要的。我想要的只是左上角第一个菜单中显示“仪表板”的链接。

4

1 回答 1

2

I figured it out. Put this code in the wp-content/themes/your-theme-name/functions.php

function new_link_display() {
    echo "Echo html code for the page";
}
function new_link_page() {
    if (function_exists('add_submenu_page') )
        add_submenu_page('index.php', __('New Like Label'), __('New Link Label'), 'manage_options', 'new-link-display', 'new_link_display');
}
add_action('admin_menu', 'new_link_page');
于 2010-08-25T23:19:22.243 回答