Clanbite Players

apply_filters( 'clanbite_player_social_links_block_items', array<int, array{slug: string, url: string, label: string}> $items, int $user_id, WP_Block $block )

Filters the list of social links rendered by the Player Social Links block.

Filter PHP

Parameters

$items (array<int, array{slug: string, url: string, label: string}>)

Links to render.

$user_id (int)

Resolved player user ID.

$block (WP_Block)

Block instance.

Example

add_filter( 'clanbite_player_social_links_block_items', function ( $items, $user_id, $block ) {
	// Change $items here.
	return $items;
}, 10, 3 );

Defined in src/blocks/players/player-social-links/render.php