WP HOOKS
filtrod 2.1.0

the_editor_content

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

Opis — z kodu źródłowego

Filters the default editor content.

Parametry

ParametrTypOpis
$contentstringDefault editor content.
$default_editorstringThe default editor for the current user. Either 'html' or 'tinymce'.

Wywołanie

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

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