Properties

Methods

debugger()

debugger(mixed  $message) 

Prints a message in the error log if WP_DEBUG is true

Parameters

mixed $message

get_input_array()

get_input_array(integer  $object_id) : array

Get the input array

Parameters

integer $object_id

Returns

array

is_autosave()

is_autosave(integer  $post_id) : boolean

Checks if the current input comes from the autosave-functionality

Parameters

integer $post_id

Returns

boolean

verify_nonce()

verify_nonce() : boolean

Checks for the nonce in the INPUT_POST

Returns

boolean

delete()

delete(integer  $object_id) 

Delete

Parameters

integer $object_id

get_menu_slug()

get_menu_slug() : string

Let's do this simple

Returns

string

get_options_page_link()

get_options_page_link() : string

Get's the link for the switcher-settings in the wp-admin

Returns

string

__call()

__call(string  $method, mixed  $args) : mixed

You can use every method of the decorated object

Parameters

string $method
mixed $args

Returns

mixed

has_problems()

has_problems() : boolean

There is something wrong? Here comes the message.

..

Returns

boolean

render()

render() 

Render the options-page

subsubsub()

subsubsub() : string

Create a submenu which contains links to all blogs of the current user

Returns

string

register()

register() 

Register the form-elements

language_section()

language_section() 

Register the fields in the language_section

main_section()

main_section() 

Register the fields in the main_section

advanced_section()

advanced_section() 

Register the fields in the advanced_section

rewrites_section()

rewrites_section() 

Register the fields in the rewrites_section

blog_language()

blog_language() 

Shows the select-form-field 'blog_language'

display()

display() 

Shows the select-form-field 'display'

reference_user()

reference_user() 

Shows the select-form-field 'reference_user'

activate_autocomplete()

activate_autocomplete() 

render

You can decide if you want to activate the experimental autocomplete input fields in the backend instead of the traditional select-menus.

activate_content_import()

activate_content_import() 

render

You can decide if you want to activate the content import functionality in the backend instead of the traditional select-menus.

sort_by_description()

sort_by_description() 

Show sort_by_description-field

You can decide that the ouput will be sorted by the description. If not the output will be sorted by the language-code.

exclude_current_blog()

exclude_current_blog() 

Exclude the current blog

You can exclude a blog explicitly. All your settings will be safe but the plugin will ignore this blog while this option is active.

only_with_translation()

only_with_translation() 

Show only a link if a translation is available

Some user requested this feature. Shows only links to available translations.

output_current_blog()

output_current_blog() 

Show a link to the current blog

Some user requested this feature. If active the plugin will place also a link to the current blog.

description()

description() 

The description for the current blog

The language will be used ff there is no description.

content_filter()

content_filter() 

The output can be placed after the_content

content_priority()

content_priority() 

If the output in the_content is active you can set the priority too

Default is 10. But may be there are other plugins active and you run into trouble. So you can decide a higher (from 1) or a lower (to 100) priority for the output

render_rewrite()

render_rewrite(string  $key) 

Rewrites slugs for registered post types

Parameters

string $key

render_checkbox()

render_checkbox(string  $key) : string

Render form-element (checkbox)

Parameters

string $key

Name and ID of the form-element

Returns

string

render_input()

render_input(string  $key, string  $size = '30', string  $default = '', boolean  $readonly = false) : string

Render form-element (text-input)

Parameters

string $key

Name and ID of the form-element

string $size

Size-attribute of the input-field

string $default
boolean $readonly

Returns

string

render_select()

render_select(string  $key, array  $arr, string  $selected = '') : string

Render form-element (select)

Parameters

string $key

Name and ID of the form-element

array $arr

Options as associative array

string $selected

Values which should be selected

Returns

string

validate()

validate(array  $arr) : array

Validates input before saving it

Parameters

array $arr

Values of the submitted form

Returns

array —

Validated input

set_blog_language()

set_blog_language(array  $arr) : array

Filter which sets the global blog language

Parameters

array $arr

Returns

array

get_input_value()

get_input_value(  $key,   $value) : array

Prepare input key/value-pair

Parameters

$key
$value

Returns

array

save()

save(integer  $object_id, string  $class) 

Save

Parameters

integer $object_id
string $class