filtrod 5.8.0
block_editor_settings_all
Opis — z kodu źródłowego
Filters the settings to pass to the block editor for all editor type.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$editor_settings | array | Default editor settings. |
$block_editor_context | \WP_Block_Editor_Context | The current block editor context. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'block_editor_settings_all', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'block_editor_settings_all', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii