{"action":"created","issue":{"url":"https://api.github.com/repos/WordPoints/hooks-api/issues/42","labels_url":"https://api.github.com/repos/WordPoints/hooks-api/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/WordPoints/hooks-api/issues/42/comments","events_url":"https://api.github.com/repos/WordPoints/hooks-api/issues/42/events","html_url":"https://github.com/WordPoints/hooks-api/issues/42","id":119318718,"number":42,"title":"Register dynamic entities for post types","user":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WordPoints/hooks-api/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/WordPoints/hooks-api/milestones/1","html_url":"https://github.com/WordPoints/hooks-api/milestones/0.1.0","labels_url":"https://api.github.com/repos/WordPoints/hooks-api/milestones/1/labels","id":1336105,"number":1,"title":"0.1.0","description":null,"creator":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":21,"state":"open","created_at":"2015-10-03T13:42:16Z","updated_at":"2015-12-08T16:11:45Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-11-28T21:24:41Z","updated_at":"2015-12-08T17:00:11Z","closed_at":null,"body":"In #29 we discussed what to call the post types in the API. Historically events were registered for all post types generically, but could be limited to specific post types using hook settings. However, the decision was made that it would be much more user-friendly to register entities and events for each post type dynamically, rather than trying to find a satisfying way of referring to all post types generically in the UI (something that WordPress does not really do).\r\n\r\nThe pros and cons of this approach are explored in #29. There are some issues, like [\"ghost reactions\"](https://github.com/WordPoints/hooks-api/issues/29#issuecomment-147708423) which we'll need to address at some point (though not necessarily right now).\r\n\r\nI've decided to open this new ticket to track the progress on this feature going forward, since the original direction of #29 has been abandoned in favor of this new approach."},"comment":{"url":"https://api.github.com/repos/WordPoints/hooks-api/issues/comments/162945372","html_url":"https://github.com/WordPoints/hooks-api/issues/42#issuecomment-162945372","issue_url":"https://api.github.com/repos/WordPoints/hooks-api/issues/42","id":162945372,"user":{"login":"JDGrimes","id":4005415,"avatar_url":"https://avatars.githubusercontent.com/u/4005415?v=3","gravatar_id":"","url":"https://api.github.com/users/JDGrimes","html_url":"https://github.com/JDGrimes","followers_url":"https://api.github.com/users/JDGrimes/followers","following_url":"https://api.github.com/users/JDGrimes/following{/other_user}","gists_url":"https://api.github.com/users/JDGrimes/gists{/gist_id}","starred_url":"https://api.github.com/users/JDGrimes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDGrimes/subscriptions","organizations_url":"https://api.github.com/users/JDGrimes/orgs","repos_url":"https://api.github.com/users/JDGrimes/repos","events_url":"https://api.github.com/users/JDGrimes/events{/privacy}","received_events_url":"https://api.github.com/users/JDGrimes/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T17:00:11Z","updated_at":"2015-12-08T17:00:11Z","body":"## i18n\r\n\r\nWe could provide specific strings for the core post types but use the generic strings for all others. Then when we create modules for specific plugins we can do the same for the post types they include. I think that will give us the best of both worlds."}}