filtrod 5.9.0
block_core_navigation_render_fallback
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
| Parametr | Typ | Opis |
|---|---|---|
$fallback_blocks | array[] | 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
}
// rejestracja funkcji zwrotnej
add_filter( 'block_core_navigation_render_fallback', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii