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/joehana/polylang-conditional/archive/refs/heads/master.zipThis plugin is an extension to Polylang (for WordPress) and adds a conditional function and conditional shortcode to check against the current active language
Installation
Simply download the ZIP, unpack it and upload its contents via FTP
Options
This plugin does not have any options. After activation all features are useable
Conditional Tag
is_language( $lang )
This can be used like any other conditional tag from wordpress.
Variables $lang (string) - Define the language slug. If you want to use this to display content only for the german version of your site then you provide 'de'.
Shortcode
Example: [is_language lang="de"]CONTENT[/is_language]