Skip to content

Commit

Permalink
[N/A] Admin > Users Bug Fix (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
bd-viget authored Mar 20, 2024
1 parent 6e22cfb commit 2ce36e5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ function ( array $columns ) {
add_filter(
'manage_users_custom_column',
function ( string $value, string $column, int $user_id ) {
if ( ! $user_id ) {
return '—';
}

$referrer = new Referrer( $user_id );

if ( 'referral_count' === $column ) {
Expand Down

0 comments on commit 2ce36e5

Please sign in to comment.