wpseek.com
WordPress开发者和主题制作者的搜索引擎



block_core_navigation_render_fallback › WordPress过滤钩子

Since5.9.0
已弃用n/a
› apply_filters( 'block_core_navigation_render_fallback', $fallback_blocks )
参数:
  • () fallback_blocks default fallback blocks provided by the default block mechanic.
    Required: Yes
定义在:
文档:

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.




源码

return apply_filters( 'block_core_navigation_render_fallback', $fallback_blocks );