WP HOOKS
filtrod 5.8.0

block_editor_rest_api_preload_paths

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

Opis — z kodu źródłowego

Filters the array of REST API paths that will be used to preloaded common data for the block editor.

Parametry

ParametrTypOpis
$preload_pathsstring[]Array of paths to preload.
$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_rest_api_preload_paths', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii