Clanbite Players

apply_filters( 'clanbite_players_get_display_cover_position_x', float $position, int $player_id )

Allows filtering of the players display cover position on the X axis, this can be bypassed by setting $suppress_filters param to true.

Filter PHP

Parameters

$position (float)

Horizontal focal position, 0 to 1.

$player_id (int)

Player (user) ID.

Example

add_filter( 'clanbite_players_get_display_cover_position_x', function ( $position, $player_id ) {
	// Change $position here.
	return $position;
}, 10, 2 );

Defined in inc/extensions/players/functions.php

Changelog

VersionDescription
1.3.0Updated.