WP Manifestindependent plugin directory
manifest / i18n / html-lang-switcher

HTML Lang Switcher

Лёгкий селектор HTML lang/dir для каждой записи/страницы. Метабокс, Quick Edit и Bulk Edit. Применение только на одиночных шаблонах. Автоматически отключается при активном WPML или Polylang.

by 7on · github.com/semtio/html-lang-switcher

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.zip

HTML 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

  1. Upload the ZIP via Plugins → Add New → Upload Plugin and activate it.
  2. Edit a post or page: use the Page language (HTML lang) metabox to pick a locale.
  3. 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.