WP HOOKS
filtrod 3.9.0

wp_mce_translation

Args 2Plik wp-includes/class-wp-editor.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters translated strings prepared for TinyMCE.

Parametry

ParametrTypOpis
$mce_translationarrayKey/value pairs of strings.
$mce_localestringLocale.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_mce_translation', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}