Clanbite Players

apply_filters( 'clanbite_players_get_account_fullname', string $full_name, int $player_id, string $first_name, string $last_name )

Allows filtering of the players account full name, this can be bypassed by setting $suppress_filters param to true.

Filter PHP

Parameters

$full_name (string)

Account full name.

$player_id (int)

Player (user) ID.

$first_name (string)

Account first name.

$last_name (string)

Account last name.

Example

add_filter( 'clanbite_players_get_account_fullname', function ( $full_name, $player_id, $first_name, $last_name ) {
	// Change $full_name here.
	return $full_name;
}, 10, 4 );

Defined in inc/extensions/players/functions.php

Changelog

VersionDescription
1.3.0Updated.