{"action":"created","issue":{"url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/issues/23","repository_url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies","labels_url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/issues/23/comments","events_url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/issues/23/events","html_url":"https://github.com/pippinsplugins/bbPress-Private-replies/issues/23","id":60013323,"number":23,"title":"Filter for capability","user":{"login":"fastlinemedia","id":2453483,"avatar_url":"https://avatars.githubusercontent.com/u/2453483?v=3","gravatar_id":"","url":"https://api.github.com/users/fastlinemedia","html_url":"https://github.com/fastlinemedia","followers_url":"https://api.github.com/users/fastlinemedia/followers","following_url":"https://api.github.com/users/fastlinemedia/following{/other_user}","gists_url":"https://api.github.com/users/fastlinemedia/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlinemedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlinemedia/subscriptions","organizations_url":"https://api.github.com/users/fastlinemedia/orgs","repos_url":"https://api.github.com/users/fastlinemedia/repos","events_url":"https://api.github.com/users/fastlinemedia/events{/privacy}","received_events_url":"https://api.github.com/users/fastlinemedia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/milestones/1","html_url":"https://github.com/pippinsplugins/bbPress-Private-replies/milestones/1.3.3","labels_url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/milestones/1/labels","id":2070584,"number":1,"title":"1.3.3","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2016-10-14T15:26:10Z","updated_at":"2016-10-14T15:28:22Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-03-05T20:46:36Z","updated_at":"2016-10-14T15:31:59Z","closed_at":null,"body":"We would like to change the capability required to view private replies from moderate to administrator. Currently, there is no way to do that, so I'm proposing a new filter that would allow us to change this. Here's an example of what I'm thinking...  \r\n\r\n```\r\npublic function get_capability() {\r\n\treturn apply_filters( 'bbp_private_replies_capability', 'moderate' );\r\n}\r\n```\r\n\r\nWhich can be used in the various parts of the plugin where needed like so... \r\n\r\n`user_can( $reply_author, $this->get_capability() )`\r\n\r\nI would be happy to submit a pull request if you think this is something you would be willing to include. Let me know! \r\n\r\nThanks,\r\nJustin "},"comment":{"url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/issues/comments/253835404","html_url":"https://github.com/pippinsplugins/bbPress-Private-replies/issues/23#issuecomment-253835404","issue_url":"https://api.github.com/repos/pippinsplugins/bbPress-Private-replies/issues/23","id":253835404,"user":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T15:31:59Z","updated_at":"2016-10-14T15:31:59Z","body":"`plugins_loaded` loaded is probably a better hook than `init` for this, but otherwise looks great!"}}
{"actor":{"display_login":"pippinsplugins"}}