Return to Snippet

Revision: 46030
at May 11, 2011 23:57 by nathanbweb

Initial Code
// Add link to Admin Menu
// via  
function mt_add_pages() {
    add_menu_page('admin-menu', 'menu-name', 5, __FILE__, 'mt_toplevel_page');
function mt_toplevel_page() {
  echo '
    <div class="wrap">
      <h2>New admin menu</h2>
      <li><a href=""><h3>Author Homepage</h3></a></li>
add_action('admin_menu', 'mt_add_pages');

Initial URL

Initial Description

Initial Title
WordPress Add Link to Admin Menu with mt_add_pages

Initial Tags
php, wordpress

Initial Language