MultisiteLanguageSwitcher.php

MultisiteLanguageSwitcher

Interfaces

IMslsRegistryInstance Interface for classes which are to register in the MslsRegistry-instance

Classes

MslsAutoloader The Autoloader does all the magic when it comes to include a file

Constants

MSLS_PLUGIN_VERSION

MSLS_PLUGIN_VERSION

MSLS_PLUGIN_PATH

MSLS_PLUGIN_PATH

MSLS_PLUGIN__FILE__

MSLS_PLUGIN__FILE__

Functions

msls_content_filter()

msls_content_filter(string $content) : string

Filter for the_content()

Parameters

string $content

Returns

string

msls_filter_string()

msls_filter_string(string $pref, string $post) : string

Create filterstring for msls_content_filter()

Parameters

string $pref
string $post

Returns

string

get_the_msls()

get_the_msls(array $arr) : string

Get the output for using the links to the translations in your code

Parameters

array $arr

Returns

string

the_msls()

the_msls(array $arr)

Output the links to the translations in your template

You can call this function directly like that

if ( function_exists ( 'the_msls' ) )
    the_msls();

Parameters

array $arr

msls_head()

msls_head()

Help searchengines to index and to serve the localized version with rel="alternate"-links in the html-header

plugin_needs_multisite()

plugin_needs_multisite()

Prints a message that the Multisite Language Switcher needs an active multisite to work properly.