{"action":"created","issue":{"url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/212","labels_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/212/comments","events_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/212/events","html_url":"https://github.com/WebDevStudios/custom-post-type-ui/issues/212","id":56922398,"number":212,"title":"Export not generating custom rewrite rules (V1)","user":{"login":"JulienMelissas","id":2278221,"avatar_url":"https://avatars.githubusercontent.com/u/2278221?v=3","gravatar_id":"","url":"https://api.github.com/users/JulienMelissas","html_url":"https://github.com/JulienMelissas","followers_url":"https://api.github.com/users/JulienMelissas/followers","following_url":"https://api.github.com/users/JulienMelissas/following{/other_user}","gists_url":"https://api.github.com/users/JulienMelissas/gists{/gist_id}","starred_url":"https://api.github.com/users/JulienMelissas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulienMelissas/subscriptions","organizations_url":"https://api.github.com/users/JulienMelissas/orgs","repos_url":"https://api.github.com/users/JulienMelissas/repos","events_url":"https://api.github.com/users/JulienMelissas/events{/privacy}","received_events_url":"https://api.github.com/users/JulienMelissas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-07T19:23:22Z","updated_at":"2015-02-09T18:40:56Z","closed_at":null,"body":"When I create a new CPT, and then go to export it, some the rewrite functions are not generated.\r\n\r\nCurrently with `'with_front'` set to `false` and Custom Rewrite Slug set to `'/foo'` it's generating:\r\n```\r\n...\r\n'hierarchical' => false,\r\n'rewrite' => true,\r\n'query_var' => true,\r\n...\r\n```\r\nwhen it should be generating:\r\n```\r\n...\r\n'hierarchical' => false,\r\n'rewrite' => array( 'slug' => '/foo', 'with_front' => false ),\r\n'query_var' => true,\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/comments/73564189","html_url":"https://github.com/WebDevStudios/custom-post-type-ui/issues/212#issuecomment-73564189","issue_url":"https://api.github.com/repos/WebDevStudios/custom-post-type-ui/issues/212","id":73564189,"user":{"login":"JulienMelissas","id":2278221,"avatar_url":"https://avatars.githubusercontent.com/u/2278221?v=3","gravatar_id":"","url":"https://api.github.com/users/JulienMelissas","html_url":"https://github.com/JulienMelissas","followers_url":"https://api.github.com/users/JulienMelissas/followers","following_url":"https://api.github.com/users/JulienMelissas/following{/other_user}","gists_url":"https://api.github.com/users/JulienMelissas/gists{/gist_id}","starred_url":"https://api.github.com/users/JulienMelissas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulienMelissas/subscriptions","organizations_url":"https://api.github.com/users/JulienMelissas/orgs","repos_url":"https://api.github.com/users/JulienMelissas/repos","events_url":"https://api.github.com/users/JulienMelissas/events{/privacy}","received_events_url":"https://api.github.com/users/JulienMelissas/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T18:40:56Z","updated_at":"2015-02-09T18:40:56Z","body":"Pretty sure this was in the \"get code\" tab - sorry for not clarifying!"}}