{"action":"created","issue":{"url":"https://api.github.com/repos/justintadlock/members/issues/61","repository_url":"https://api.github.com/repos/justintadlock/members","labels_url":"https://api.github.com/repos/justintadlock/members/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/justintadlock/members/issues/61/comments","events_url":"https://api.github.com/repos/justintadlock/members/issues/61/events","html_url":"https://github.com/justintadlock/members/issues/61","id":108576664,"number":61,"title":"Display capabilities with human readable descriptions","user":{"login":"nemchik","id":725456,"avatar_url":"https://avatars3.githubusercontent.com/u/725456?v=3","gravatar_id":"","url":"https://api.github.com/users/nemchik","html_url":"https://github.com/nemchik","followers_url":"https://api.github.com/users/nemchik/followers","following_url":"https://api.github.com/users/nemchik/following{/other_user}","gists_url":"https://api.github.com/users/nemchik/gists{/gist_id}","starred_url":"https://api.github.com/users/nemchik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nemchik/subscriptions","organizations_url":"https://api.github.com/users/nemchik/orgs","repos_url":"https://api.github.com/users/nemchik/repos","events_url":"https://api.github.com/users/nemchik/events{/privacy}","received_events_url":"https://api.github.com/users/nemchik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2015-09-28T02:01:59Z","updated_at":"2017-06-24T15:38:19Z","closed_at":null,"body":"Would it be possible to display human readable descriptions for the capabilities in the roles/capabilities editor when editing a role? Personally I would still like to see the capability's actual name, but a brief description next to the name would certainly be handy!\n"},"comment":{"url":"https://api.github.com/repos/justintadlock/members/issues/comments/310845828","html_url":"https://github.com/justintadlock/members/issues/61#issuecomment-310845828","issue_url":"https://api.github.com/repos/justintadlock/members/issues/61","id":310845828,"user":{"login":"justintadlock","id":1816309,"avatar_url":"https://avatars0.githubusercontent.com/u/1816309?v=3","gravatar_id":"","url":"https://api.github.com/users/justintadlock","html_url":"https://github.com/justintadlock","followers_url":"https://api.github.com/users/justintadlock/followers","following_url":"https://api.github.com/users/justintadlock/following{/other_user}","gists_url":"https://api.github.com/users/justintadlock/gists{/gist_id}","starred_url":"https://api.github.com/users/justintadlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justintadlock/subscriptions","organizations_url":"https://api.github.com/users/justintadlock/orgs","repos_url":"https://api.github.com/users/justintadlock/repos","events_url":"https://api.github.com/users/justintadlock/events{/privacy}","received_events_url":"https://api.github.com/users/justintadlock/received_events","type":"User","site_admin":false},"created_at":"2017-06-24T15:38:19Z","updated_at":"2017-06-24T15:38:19Z","body":"The screenshot below is what I've been able to come up with.  It shows the \"human-readable\" version of the capability name.\r\n\r\nFor most core WP capabilities, this doesn't mean much for English-speaking users.  The core caps are already in fairly plain English.  This is one of the reasons I've always held back from showing the human-readable version of the capability.\r\n\r\nHowever, where this method shines is in translations.  All of those capability labels/names are internationalized and can be translated to any language.\r\n\r\n**New capability registration system:**\r\n\r\nI've been working on a new cap registration system.  Basically:\r\n\r\n```\r\nmembers_register_cap(\r\n\t'cap_name',\r\n\tarray(\r\n\t\t'label' => __( 'My Human Cap Name', 'textdomain' ),\r\n\t\t'group' => 'some-cap-group'\r\n\t)\r\n);\r\n```\r\n\r\nThis would allow other plugin authors to register their custom caps with Members.  Members itself would register all of core WP's caps out of the box.\r\n\r\n**Problems:**\r\n\r\nThe big problem has always been unknown caps (custom caps added by the user and plugin caps).  For plugins, they must use it.\r\n\r\nI could always use the PHP `ucwords()` function to fake a capability label.  That's what some other plugins do.  But, that's tacky and not always predictable.  Plus, translations wouldn't work.\r\n\r\nSo, that pretty much leaves us with a mix of custom caps and human-readable caps.  I'm not sure how I feel about that.  _In the future, I could possibly add a capability manager similar to the role manager, which could solve that problem by allowing the user to add their own labels._\r\n\r\n**Screenshot:**\r\n\r\n![members-human-caps-001](https://user-images.githubusercontent.com/1816309/27509493-ccb15496-58c3-11e7-9187-7f642949149b.png)\r\n"}}
{"actor":{"display_login":"justintadlock"}}