title: Hiding DIV from menu based on user role / capabilities Wordpress
body: <p>I have a wordpress site with 2 user roles, customer and vendor. I want to hide the Vendor Dashboard from the menu bar from Customers. The code for this theme is in the header-aside.php file so a plugin won't work to hide this element. I have tried the following code which hides this from everyone, not just customers, so I'm not sure what I have wrong here.</p>
  
  <pre><code>     &lt;?php if (current_user_can(‘read’)) { ?&gt;
          &lt;div class="dashboard-icon"&gt;
              &lt;a id="header-button" href="/creator-dashboard/" class="header-button boss-tooltip" data-tooltip="&lt;?php _e( 'Creator Dashboard', 'onesocial' ); ?&gt;"&gt;&lt;i class="fas fa-tachometer-alt"&gt;&lt;/i&gt;&lt;/a&gt;
          &lt;/div&gt;
      &lt;?php } ?&gt;
  
  </code></pre>
  
  <p>Note I have the capability 'read' in there as a test since I am unable to get it to show. But the actual capability a vendor has is 'edit_products'</p>