filtrod 4.9.0
replace_editor
Opis — z kodu źródłowego
Allows replacement of the editor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$replace | bool | Whether to replace the editor. Default false. |
$post | \WP_Post | Post object. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'replace_editor', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'replace_editor', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii