Viewing 1 replies (of 1 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi Richard,

    flush_rewrite_rules() is a function that should only be called after a plug-in/theme is activated or deactivated, or when the permalink settings are updated. There is no need to call it on every load, and in fact it’s a very expensive function.

    You can see it is called here on activation (and after post types have been registered). It’s also called whenever you visit the plug-in’s permalink settings page.

    If you’re experiencing problems, it could be another plug-in/theme doing something wrong. On a fresh install, with permalinks enabled, there shouldn’t be any issues.

Viewing 1 replies (of 1 total)
  • The topic ‘Add flush_rewrite_rules();’ is closed to new replies.