jornbakhuys/custom-post-type-maker — pull request #22 by cfoellmann (2013-12-17 11:51:49+00:00)
Title: flush hooked

connected to #1

Problem is that with this code the rules are NOT flushed on first save of the CPT post(_type) but ONLY if you click "the button" again (Update) to update the post.
I don't know why flush_rewrite_rules() does not fire on the normal first save.