wpseek.com
WordPress开发者和主题制作者的搜索引擎
wp_flush_rewrite_rules_on_site_language_change › WordPress Function
Since7.2.0
已弃用n/a
› wp_flush_rewrite_rules_on_site_language_change ( 没有参数 )
| 定义在: |
|
| 文档: |
Clears the rewrite rules when the site language changes.
Rewrite rules can contain translated slugs, such as the default random content base, see WP_Rewrite::get_random_base. Clearing the rules causes them to be regenerated in the new site language. The rules are regenerated on the next request rather than immediately, because the new language is not loaded until after the option is saved. Clearing the rules also avoids rewriting the .htaccess file. Runs on the {@see 'add_option_WPLANG'} and {@see 'update_option_WPLANG'} actions.