WP HOOKS
filtrod 2.5.0

mce_buttons_4

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

Opis — z kodu źródłowego

Filters the fourth-row list of TinyMCE buttons (Visual tab).

Parametry

ParametrTypOpis
$mce_buttons_4arrayFourth-row list of buttons.
$editor_idstringUnique editor identifier, e.g. 'content'. Accepts 'classic-block' when called from block editor's Classic block.

Wywołanie

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

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