WP Manifestindependent plugin directory
manifest / i18n / polylang-conditional

Polylang Conditional

This plugin is an extension to Polylang (for WordPress) and adds a conditional function and conditional shortcode to check against the current active language

by Joe Hana · github.com/joehana/polylang-conditional · website

11stars
5forks

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/joehana/polylang-conditional/archive/refs/heads/master.zip

Declares an update source (joehana/polylang-conditional), so updates arrive through the plugin's own updater.

From the readme

Polylang Conditional This 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 ### islanguage( $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: [islanguage lang="de"]CONTENT[/islanguage]

Read the full README on GitHub →