Clanbite

maybe_handle_team_media_upload( int $team_id, string $field_name, string $meta_key, string $nonce_action, string $nonce_request_key ): void

Handle optional media upload for team create flow.

protected

Class: Kernowdev\Clanbite\Extensions\Teams

Parameters

$team_id (int) Required

Team post ID.

$field_name (string) Required

Form file input name.

$meta_key (string) Required

Meta key to store attachment ID.

$nonce_action (string) Required

Nonce action for the current request (see wp_verify_nonce()).

$nonce_request_key (string) Required

$_POST key holding the nonce value.

Returns

void

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