Last active
April 4, 2019 19:16
-
-
Save danielpataki/5ddba41a93ceef48b51e 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