title: how to add custom link on wordpress admin sidebar
body: <p>How to add custom link on wordpress admin sidebar without using plugins?
  For example, i want to add "Google.com" link. How should i do this?</p>
  
  <p>I tried this:
  Added next code to admin-bar.php</p>
  
  <pre><code>function mycustomlink() {
  global $wp_admin_bar;
  $wp_admin_bar-&gt;add_menu( array(
      'parent' =&gt; 'new-content',
      'id' =&gt; 'mycustomlinkId',
      'title' =&gt; __('Custom link'),
      'href' =&gt; admin_url( 'google.com'),
      'meta' =&gt; false 
  ));}
  </code></pre>
  
  <p>And added next code to class-wp-admin-bar.php</p>
  
  <pre><code>add_action( 'admin_bar_menu', 'mycustomlink', 900 );
  </code></pre>
  
  <p>but no results.</p>