filtrod 4.0.0
wp_editor_expand
Opis — z kodu źródłowego
Filters whether to enable the 'expand' functionality in the post editor.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$expand | bool | Whether to enable the 'expand' functionality. Default true. |
$post_type | string | Post type. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_editor_expand', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_editor_expand', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii