apply_filters( 'clanbite_players_get_display_cover_position_y', float $position, int $player_id )Allows filtering of the players display cover position on the Y axis, this can be bypassed by setting $suppress_filters param to true.
Filter PHP
Parameters
$position(float)Vertical focal position, 0 to 1.
$player_id(int)Player (user) ID.
Example
add_filter( 'clanbite_players_get_display_cover_position_y', function ( $position, $player_id ) {
// Change $position here.
return $position;
}, 10, 2 );Defined in inc/extensions/players/functions.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Updated. |