norcross/WordPress-FAQ-Manager — pull request #2 by johnpbloch (2012-08-16 19:13:59+00:00)
Title: Pass a page description with the page capabilities filter

This allows granular control for each capability (e.g., let anybody with 'read' see instructions, let anybody with 'publish_posts' see sort, and use manage_options for the settings page) by doing something like this:

```php
add_filter( 'faq-caps', function( $cap, $page ){
switch($page){
case 'sort':
return 'publish_posts';
break;
default:
return $cap;
break;
}, 10, 2 );
```