Clanbite

filter_team_singular_block_context( array<string, mixed> $context, array<string, mixed> $parsed_block, \WP_Block|null $parent_block ): array<string, mixed>

Pass the current team post into block context on singular templates (nested blocks often lack postId on the front end).

public

Class: Kernowdev\Clanbite\Extensions\Teams

Parameters

$context (array<string, mixed>) Required

Block context.

$parsed_block (array<string, mixed>) Required

Parsed block.

$parent_block (\WP_Block|null) Required

Parent block.

Returns

array<string, mixed>

Defined in inc/extensions/teams/class-extension-teams.php