Clanbite Teams

apply_filters( 'clanbite_team_challenge_button_visible', bool $visible, int $team_id, WP_Block $block )

Whether to output the team challenge UI.

Filter PHP

Parameters

$visible (bool)

Default visibility.

$team_id (int)

Team post ID.

$block (WP_Block)

Block instance.

Example

add_filter( 'clanbite_team_challenge_button_visible', function ( $visible, $team_id, $block ) {
	// Change $visible here.
	return $visible;
}, 10, 3 );

Defined in src/blocks/teams/team-challenge-button/render.php