WP HOOKS
filtrod 4.3.0

format_for_editor

Args 2Plik wp-includes/formatting.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the text after it is formatted for the editor.

Parametry

ParametrTypOpis
$textstringThe formatted text.
$default_editorstringThe default editor for the current user. It is usually either 'html' or 'tinymce'.

Wywołanie

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

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

Popularne w tej kategorii