title: How to give a Wordpress user (editor) permission to a special admin page?
body: <p>I want to give users with user role editor access to my plugin settings page.</p>
  
  <p>.../wp-admin/admin.php?page=myplugin_settingspage</p>
  
  <p>by default only admin can access this page. 
  I implemented this code to protect the config page.</p>
  
  <pre><code>if (!current_user_can('administrator') &amp;&amp; !current_user_can('publish_posts')) exit('Admins only.');
  </code></pre>
  
  <p>But even if I remove this line the page is still protected and for admins only. I guess this protection is done by the WP core.
  So how to make the page available for users with userrole Editor?</p>
  
  <p>Best Regards</p>