WP HOOKS
filtrod 4.0.0

wp_editor_settings

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

Opis — z kodu źródłowego

Filters the wp_editor() settings.

Parametry

ParametrTypOpis
$settingsarrayArray of editor arguments.
$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( 'wp_editor_settings', 'twoja_funkcja', 10, 2 );

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