I18n
in package

Tags
since
1.0

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
since
1.0

Methods

getCurrentLanguage()

public getCurrentLanguage() : string
Tags
since
1.0
Return values
string

getDefaultLanguage()

public getDefaultLanguage() : string
Tags
since
1.0
Return values
string

getWordPressLanguage()

public getWordPressLanguage() : string
Tags
since
1.0
Return values
string

isDefaultLanguage()

public isDefaultLanguage() : bool
Tags
since
1.0
Return values
bool

isTranslatablePostType()

public isTranslatablePostType(string $postType) : bool
Parameters
$postType : string
Tags
since
1.0
Return values
bool

isTranslationPage()

public isTranslationPage() : bool
Tags
since
1.0
Return values
bool

isTranslationPluginActive()

public isTranslationPluginActive() : bool
Tags
since
1.0
Return values
bool

restoreLanguage()

public restoreLanguage() : mixed
Tags
since
1.0
Return values
mixed

switchLanguage()

public switchLanguage([string|null $language = null ]) : mixed
Parameters
$language : string|null = null

Optional. Default language by default.

Tags
since
1.0
Return values
mixed

isWpmlActive()

protected isWpmlActive() : bool
Tags
since
1.0
Return values
bool

Search results