1. Customize
  2. Transfers
  3. Change the recipient display

Change the recipient display

Note: Now, Transfers add-on includes a setting that lets you setup the recipient display.
You can find more information in the add-on documentation.

The Transfers add-on includes the ability to users to let them transfer anything to a specific user.

By default, they will the the user’s display name and email address.

The following snippet shows how to change how Transfers add-on displays any recipient by making it displaying just the recipient’s display name.

Important: This filter was introduced on version 1.0.5, so you need to get Transfers add-on updated in order to work.

function my_prefix_gamipress_transfers_display_recipient( $output, $user ) {
    // Return the user display name
    return $user->display_name;
add_filter( 'gamipress_transfers_display_recipient', 'my_prefix_gamipress_transfers_display_recipient', 10, 2 );

How can we help?