WP HOOKS
filtrod 5.8.0

block_editor_settings_all

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

Opis — z kodu źródłowego

Filters the settings to pass to the block editor for all editor type.

Parametry

ParametrTypOpis
$editor_settingsarrayDefault editor settings.
$block_editor_context\WP_Block_Editor_ContextThe 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
}

Popularne w tej kategorii