WordPress doesn’t remember my custom rewrite rule

Thanks @cybmeta for your hint. I searched my theme and found an other flush_rewrite_rules(true); on the init hook. I removed this and now the rule is being remembered.

Seemingly, calling the function twice is breaking something. Doesn’t really make sense to me, but it works now, so whatever 🙂