wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



render_block_{$this->name} › Hooks de Filtros WordPress

Desde5.9.0
Obsoleton/a
apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this )
Parâmetros: (3)
  • (string) $block_content The block content.
    Required: Yes
  • (array) $block The full block, including name and attributes.
    Required: Yes
  • (WP_Block) $instance The block instance.
    Required: Yes
Definido em:
Codex:

Filters the content of a single block.

The dynamic portion of the hook name, $name, refers to the block name, e.g. "core/paragraph".





Fonte

$block_content = apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this );