title: Wordpress User Role allow acces only to Contact Form 7
body: <p>I have a custom user role, called form_editor. I want this user to only be able to edit contact form 7.</p>
  
  <p>THis is what I have so far</p>
  
  <pre><code>$form_editor_role = add_role(
      'form_editor',
      __( 'Form Editor' ),
      array(
          'read'         =&gt; true,  // true allows this capability
          'edit_posts'   =&gt; true,
          'delete_posts' =&gt; false, // Use false to explicitly deny
      )
  );
  
  $role = get_role( 'form_editor' );
  if(!$role-&gt;has_cap('cfdb7_access')){
      $role-&gt;add_cap( 'cfdb7_access' );
  }
  </code></pre>
  
  <p>Right not it doesn't have access to posts. It has view access to contact forms, but no edit permissions.</p>