A WordPress-centric search engine for devs and theme authors



pre_render_block ›

Since5.1.0
Deprecatedn/a
apply_filters( 'pre_render_block', null, $block )
Parameters: (2)
  • (string|null) $pre_render The pre-rendered content. Default null.
    Required: Yes
  • (array) $block The block being rendered.
    Required: Yes
Defined at:
Codex:

Allows render_block() to be shortcircuited, by returning a non-null value.





Source

$pre_render = apply_filters( 'pre_render_block', null, $block );