Clanbite

sync_team_meta_after_front_end_create( int $team_id, array $fields ): void

Re-write team meta after front-end create so DB + REST match the submitted wizard (and uploads).

The data store skips empty strings; direct updates here guarantee keys exist for the editor.

protected

Class: Kernowdev\Clanbite\Extensions\Teams

Parameters

$team_id (int) Required

New team post ID.

$fields (array) Required

Keys: code, motto, country (sanitized ISO or '').

Returns

void

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