-
-
Save barbietunnie/e46d8517d9dc48e4c0ce to your computer and use it in GitHub Desktop.
Toolbar Modifications
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
add_action( 'admin_bar_menu', 'my_new_toolbar_item', 999 ); | |
function my_new_toolbar_item( $wp_admin_bar ) { | |
$args = array( | |
'id' => 'my_new_item', | |
'title' => 'Media Settings', | |
'href' => admin_url() . 'options-media.php', | |
); | |
$wp_admin_bar->add_node( $args ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment