filtrod 2.1.0
the_editor_content
Opis — z kodu źródłowego
Filters the default editor content.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$content | string | Default editor content. |
$default_editor | string | The 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
}
// 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
}