\MslsPlugin

Provides functionalities for general hooks and activation/deactivation

Summary

Methods
Properties
Constants
init()
init_widget()
init_i18n_support()
set_admin_language()
message_handler()
uninstall()
cleanup()
get_superglobals()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

init()

init() : boolean

Loads styles and some js if needed The methiod returns true if JS is loaded or false if not

Returns

boolean

init_widget()

init_widget() : boolean

Register widget

The widget will only be registered if the current blog is not excluded in the configuration of the plugin.

Returns

boolean

init_i18n_support()

init_i18n_support() : boolean

Load textdomain

The method will be executed allways on init because we have some translatable string in the frontend too.

Returns

boolean

set_admin_language()

set_admin_language(string $locale) : string

Set the admin language Callback for 'locale' hook

Parameters

string $locale

Returns

string

message_handler()

message_handler(string $message, string $css_class) : boolean

Message handler

Prints a message box to the screen.

Parameters

string $message
string $css_class

Returns

boolean

uninstall()

uninstall() : boolean

Uninstall plugin

The plugin data in all blogs of the current network will be deleted after the uninstall procedure.

Returns

boolean

cleanup()

cleanup() : boolean

Cleanup the options

Removes all values of the current blogs which are stored in the options-table and returns true if it was successful.

Returns

boolean

get_superglobals()

get_superglobals(array $list) : array

Get specific vars from $_POST and $_GET in a safe way

Parameters

array $list

Returns

array