wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
wp_flush_rewrite_rules_on_site_language_change › WordPress Function
Seit7.2.0
Veraltetn/v
› wp_flush_rewrite_rules_on_site_language_change ( Keine Parameter )
| Definiert in: |
|
| Codex: |
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.