Skip to content

Instantly share code, notes, and snippets.

@nschaeferhoff
Created November 17, 2017 10:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nschaeferhoff/616e79cffe1db2b32338536b48021250 to your computer and use it in GitHub Desktop.
Save nschaeferhoff/616e79cffe1db2b32338536b48021250 to your computer and use it in GitHub Desktop.
function add_toolbar_items($wp_admin_bar) {
$wp_admin_bar->add_node( array(
'id' => 'supportlink',
'title' => 'Contact support',
'href' => 'mailto:support@domain.com',
) );
}
add_action('admin_bar_menu', 'add_toolbar_items', 999);
@lorenzcgn
Copy link

I would like to add an item "Save as draft" on published posts, how can i do that? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment