{"action":"created","issue":{"url":"https://api.github.com/repos/wpbrasil/odin/issues/386","repository_url":"https://api.github.com/repos/wpbrasil/odin","labels_url":"https://api.github.com/repos/wpbrasil/odin/issues/386/labels{/name}","comments_url":"https://api.github.com/repos/wpbrasil/odin/issues/386/comments","events_url":"https://api.github.com/repos/wpbrasil/odin/issues/386/events","html_url":"https://github.com/wpbrasil/odin/pull/386","id":137570595,"number":386,"title":"Flush Rewrite Rules on class:: Odin_Post_Type","user":{"login":"BackFront","id":10165864,"avatar_url":"https://avatars.githubusercontent.com/u/10165864?v=3","gravatar_id":"","url":"https://api.github.com/users/BackFront","html_url":"https://github.com/BackFront","followers_url":"https://api.github.com/users/BackFront/followers","following_url":"https://api.github.com/users/BackFront/following{/other_user}","gists_url":"https://api.github.com/users/BackFront/gists{/gist_id}","starred_url":"https://api.github.com/users/BackFront/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BackFront/subscriptions","organizations_url":"https://api.github.com/users/BackFront/orgs","repos_url":"https://api.github.com/users/BackFront/repos","events_url":"https://api.github.com/users/BackFront/events{/privacy}","received_events_url":"https://api.github.com/users/BackFront/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T13:11:04Z","updated_at":"2016-03-01T13:34:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wpbrasil/odin/pulls/386","html_url":"https://github.com/wpbrasil/odin/pull/386","diff_url":"https://github.com/wpbrasil/odin/pull/386.diff","patch_url":"https://github.com/wpbrasil/odin/pull/386.patch"},"body":"Sem essa função após registrar o post type, o wordpress não é capaz de usar o post type criado na regra de reescrita do hiperlink."},"comment":{"url":"https://api.github.com/repos/wpbrasil/odin/issues/comments/190726243","html_url":"https://github.com/wpbrasil/odin/pull/386#issuecomment-190726243","issue_url":"https://api.github.com/repos/wpbrasil/odin/issues/386","id":190726243,"user":{"login":"matheuscl","id":5884879,"avatar_url":"https://avatars.githubusercontent.com/u/5884879?v=3","gravatar_id":"","url":"https://api.github.com/users/matheuscl","html_url":"https://github.com/matheuscl","followers_url":"https://api.github.com/users/matheuscl/followers","following_url":"https://api.github.com/users/matheuscl/following{/other_user}","gists_url":"https://api.github.com/users/matheuscl/gists{/gist_id}","starred_url":"https://api.github.com/users/matheuscl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matheuscl/subscriptions","organizations_url":"https://api.github.com/users/matheuscl/orgs","repos_url":"https://api.github.com/users/matheuscl/repos","events_url":"https://api.github.com/users/matheuscl/events{/privacy}","received_events_url":"https://api.github.com/users/matheuscl/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T13:34:52Z","updated_at":"2016-03-01T13:34:52Z","body":"Será que não é melhor usar um hook pra isso? da uma olhada [aqui](http://codex.wordpress.org/Plugin_API/Action_Reference#Template_Actions), talvez o hook `switch_theme` já resolva o problema, ficar dando `flush` toda hora é uma prática ruim, da uma olhada [aqui](https://codex.wordpress.org/Function_Reference/flush_rewrite_rules#Usage)."}}