Clanbite Players

do_action( 'clanbite_save_player_settings', array<string, mixed> $filtered_data, array<string, mixed> $data, array<string, array<string, mixed>> $files, int $user_id )

Fires after player settings POST data and uploads are sanitized.

Action PHP

Parameters

$filtered_data (array<string, mixed>)

Mutable copy from the filter above (defaults to fully sanitized POST).

$data (array<string, mixed>)

Same sanitized POST snapshot passed to the filter (immutable reference for handlers).

$files (array<string, array<string, mixed>>)

Whitelisted upload fields only (profile_avatar, profile_cover).

$user_id (int)

Profile owner user ID.

Example

add_action( 'clanbite_save_player_settings', function ( $filtered_data, $data, $files, $user_id ) {
	// Run your code.
}, 10, 4 );

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