I18n
in package
Tags
Table of Contents
- $switchedLanguage : string
- getCurrentLanguage() : string
- getDefaultLanguage() : string
- getWordPressLanguage() : string
- isDefaultLanguage() : bool
- isTranslatablePostType() : bool
- isTranslationPage() : bool
- isTranslationPluginActive() : bool
- restoreLanguage() : mixed
- switchLanguage() : mixed
- isWpmlActive() : bool
Properties
$switchedLanguage
protected
string
$switchedLanguage
= null
Tags
Methods
getCurrentLanguage()
public
getCurrentLanguage() : string
Tags
Return values
string —getDefaultLanguage()
public
getDefaultLanguage() : string
Tags
Return values
string —getWordPressLanguage()
public
getWordPressLanguage() : string
Tags
Return values
string —isDefaultLanguage()
public
isDefaultLanguage() : bool
Tags
Return values
bool —isTranslatablePostType()
public
isTranslatablePostType(string $postType) : bool
Parameters
- $postType : string
Tags
Return values
bool —isTranslationPage()
public
isTranslationPage() : bool
Tags
Return values
bool —isTranslationPluginActive()
public
isTranslationPluginActive() : bool
Tags
Return values
bool —restoreLanguage()
public
restoreLanguage() : mixed
Tags
Return values
mixed —switchLanguage()
public
switchLanguage([string|null $language = null ]) : mixed
Parameters
- $language : string|null = null
-
Optional. Default language by default.
Tags
Return values
mixed —isWpmlActive()
protected
isWpmlActive() : bool