WP HOOKS
filtrod 2.7.0

teeny_mce_before_init

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

Opis — z kodu źródłowego

Filters the teenyMCE config before init.

Parametry

ParametrTypOpis
$mce_initarrayAn array with teenyMCE config.
$editor_idstringUnique editor identifier, e.g. 'content'.

Wywołanie

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

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