WP HOOKS
filtrod 5.9.0

block_core_navigation_render_fallback

Args 1Plik wp-includes/blocks/navigation.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the fallback experience for the Navigation block.

Returning a falsey value will opt out of the fallback and cause the block not to render. To customise the blocks provided return an array of blocks - these should be valid children of the core/navigation block.

Parametry

ParametrTypOpis
$fallback_blocksarray[]default fallback blocks provided by the default block mechanic.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'block_core_navigation_render_fallback', 'twoja_funkcja' );

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

Popularne w tej kategorii