wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



render_block_{$this->name} › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this )
Parameter: (3)
  • (string) $block_content The block content.
    Erforderlich: Ja
  • (array) $block The full block, including name and attributes.
    Erforderlich: Ja
  • (WP_Block) $instance The block instance.
    Erforderlich: Ja
Definiert in:
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".





Quellcode

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