ThemeFuse / Unyson-Backups-Extension

Backup & Demo Content - This extension lets you create an automated backup schedule, import demo content or even create a demo content archive for migration purposes.
http://manual.unyson.io/en/latest/extension/backups/
10 stars 17 forks source link

Can we do flush rewrite rules on demo content installation complete? #55

Closed yura-x closed 6 years ago

yura-x commented 6 years ago

Hello! After demo content installation we have to manually go to Settings -> Permalinks and click on 'Save' button because our custom post types permalinks are broken and causes 404 error. Does Backup Extension has any actions on demo content installation complete? We could not find it in documentation or in extension code. Thank you!

yura-x commented 6 years ago

Does this code will be correct resolving? function _action_flush_rewrite_rules() { flush_rewrite_rules(); } add_action( 'fw:ext:backups:restore', '_action_flush_rewrite_rules' );

ViorelEremia commented 6 years ago

Can you test with that commit?