Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/turnermike/hihat-language-toggle/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
This Wordpress plugin is used in conjunction with WPML. It is a very basic plugin that will display an English or French link depending on the current language.
How it Works
Use the shortcode in your posts/pages, or do_shortcode('[hihat_language_toggle]') in your theme templates.
Shortcode
[hihat_language_toggle short_text="false"]
If the "short_text" parameter is set to "true", the plugin will return "FR" rather than "French" and "EN" rather than "English".
Developed by Hi-hat Consulting