Add a link to the WordPress Toolbar
One handy plugin we use is the Editorial Calendar to keep track of when posts are scheduled.
When you install this plugin it puts a link in the left hand column, but as it’s so useful it would be handy to have even quicker access to it.
To make it more accessible we can add a link to the WordPress Toolbar.
All you need to do is go to Appearance -> Editor and select functions.php
Then add this code:
// add a link to the WP Toolbar
function custom_toolbar_link($wp_admin_bar) {
$args = array(
'id' => 'calendar',
'title' => 'Calendar',
'href' => '/wp-admin/edit.php?page=cal'
);
$wp_admin_bar->add_node($args);
}
add_action('admin_bar_menu', 'custom_toolbar_link', 100);
The same code can be added to add any other links you desire to the toolbar. The number at the end controls the order.
