Skip to content

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

Notifications You must be signed in to change notification settings

JoeHana/polylang-conditional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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]

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages