Is it possible to add a site-wide add_rewrite_rule for a multilingual site?
I don’t know if this can be done at once —using maybe an htaccess rule–. But, I think rebuilding the existing rewrite rules instead of adding new ones can do the trick. There are filters available for each group of rewrite rules: post_rewrite_rules date_rewrite_rules comments_rewrite_rules search_rewrite_rules author_rewrite_rules page_rewrite_rules {post_type}_rewrite_rules {taxonomy}_rewrite_rules By using ‘post_rewrite_rules’ filter we … Read more