HowTo to add my rewrite rules at the beginning, redirect to the right page and flush the rules on plugin activation?

Parameter in add_permastruct() The third parameter of add_permastruct() is for the is_front parameter. This is a basename, which you can add to the default permalink structure of all your posts in the WordPress admin. For example, if you have set the permalink structure to /blog/%postname% the word blog will be prepended to your rule. In … Read more