| @@ -25,5 +25,14 @@ | ||
| 25 | 25 | FileHandler::createIndexFile($entryDir); |
| 26 | 26 | } |
| 27 | 27 | } |
| 28 | 28 | } |
| 29 | + | |
| 30 | + /** | |
| 31 | + * Flush rewrite rules once after the 'bitforms' post type args changed | |
| 32 | + * (public => false, publicly_queryable => true) so the download permalink keeps resolving. | |
| 33 | + */ | |
| 34 | + public function flushRewriteRulesForBitformsCpt() | |
| 35 | + { | |
| 36 | + flush_rewrite_rules(); | |
| 37 | + } | |
| 29 | 38 | } |