Created
December 13, 2012 00:14
-
-
Save trepmal/4272924 to your computer and use it in GitHub Desktop.
External Admin Link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Plugin Name: External Admin Link | |
new External_Admin_Link(); | |
class External_Admin_Link { | |
function __construct() { | |
add_action( 'admin_menu', array( &$this, 'menu' ) ); | |
} | |
function menu() { | |
global $menu; | |
// array( $name, $capability, $link, $notsure, $classes, $slug_ithink, $notsure ) | |
// $slug_ithink would only be relevant for "real" admin pages | |
$new_link = array( 'Test', 'read', 'http://google.com', '', 'menu-top menu-icon-settings', '', 'none' ); | |
array_push( $menu, $new_link ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment