_WP_Editors::wp_mce_translation

SummerySummery

Translates the default TinyMCE strings and returns them as JSON encoded object ready to be loaded with tinymce.addI18n(), or as JS snippet that should run after tinymce.js is loaded.

Syntax

_WP_Editors::wp_mce_translation( string $mce_locale = '', bool $json_only = false )

ParametersParameters

$mce_locale

(string) (Optional) The locale used for the editor.

Default value: ''

$json_only

(bool) (Optional) Whether to include the JavaScript calls to tinymce.addI18n() and tinymce.ScriptLoader.markDone().

Default value: false

ReturnReturn

(string) Translation object, JSON encoded.

SourceSource

File: wp-includes/class-wp-editor.php


			

ChangelogChangelog

Changelog
Version Description
3.9.0 Introduced.
Scroll to Top