filtrod 2.7.0
teeny_mce_buttons
Opis — z kodu źródłowego
Filters the list of teenyMCE buttons (Code tab).
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$mce_buttons | array | An array of teenyMCE buttons. |
$editor_id | string | Unique editor identifier, e.g. 'content'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'teeny_mce_buttons', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'teeny_mce_buttons', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}