block_core_navigation_render_fallback

FILTER wp-includes\blocks\navigation.php (ligne 1098) github
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.

Paramètres

Entrée :
$fallback_blocks
Sortie :
@param array[] $fallback_blocks default fallback blocks provided by the default block mechanic.

Utilisation

// Modifier la valeur avec le filtre 'block_core_navigation_render_fallback'
add_filter('block_core_navigation_render_fallback', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($fallback_blocks) {
    // Modifier la valeur
    return $fallback_blocks;
}

Actualités

Chargement des actualités...