Clanbite Teams

apply_filters( 'clanbite_team_can_edit_frontend', bool $allowed, int $team_id, array<string,                        mixed> $options, \Kernowdev\Clanbite\Extensions\Teams $extension )

Filters whether a team may be edited on the front end (defaults to the team's allow_frontend_edit option).

Filter PHP

Parameters

$allowed (bool)

Whether front-end editing is allowed.

$team_id (int)

Team post ID.

$options (array<string, mixed>)

Team options.

$extension (\Kernowdev\Clanbite\Extensions\Teams)

Teams extension.

Example

add_filter( 'clanbite_team_can_edit_frontend', function ( $allowed, $team_id, $options, $extension ) {
	// Change $allowed here.
	return $allowed;
}, 10, 4 );

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

Changelog

VersionDescription
1.3.0Updated.