HTML Lang Switcher
Лёгкий селектор HTML lang/dir для каждой записи/страницы. Метабокс, Quick Edit и Bulk Edit. Применение только на одиночных шаблонах. Автоматически отключается при активном WPML или Polylang.
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/semtio/html-lang-switcher/archive/refs/heads/main.zipHTML Lang Switcher (Single Post/Page)
Select the HTML lang (and dir) per post or page. Adds a small metabox to choose a locale.
Applies only on singular templates. Automatically disables itself when WPML or Polylang is active.
Installation
- Upload the ZIP via Plugins → Add New → Upload Plugin and activate it.
- Edit a post or page: use the Page language (HTML lang) metabox to pick a locale.
- Leave it blank to use the site default language.
Filters
hls_supported_post_types— change supported post types (default: post, page).hls_supported_locales— add/remove locales shown in the dropdown.
Changelog
1.0.0
- Initial release.