wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



render_block_{$this->name} › Les Filtres WordPress

Depuis5.9.0
Dépréciéen/a
apply_filters( "render_block_{$this->name}", $block_content, $this->parsed_block, $this )
Paramètres: (3)
  • (string) $block_content The block content.
    Requis: Oui
  • (array) $block The full block, including name and attributes.
    Requis: Oui
  • (WP_Block) $instance The block instance.
    Requis: Oui
Défini(e) dans:
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".





Source

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