Usage:

This filter hook enables you to influence and manipulate the WordPress field ‘user_nicename’ when the user is first created.

Unlike the “i4w_alternate_role” hook, this setting doesn’t get updated each time a user logs. The hook is only called once upon initial login so as not to disturb any other function which may rely on this setting (i.e. BuddyPress).

Parameters:

iMember360 will pass the following parameters to your filter function:

$nicename contains the default WordPress field value of “user_nicename”.
$first_name contains the default WordPress field value of “first_name”, which is obtained from Infusionsoft (FirstName).
$last_name contains the default WordPress field value of “last_name”, which is obtained from Infusionsoft (LastName).
$arrINFU is an array containing the contact record fields for the person who just logged in

Example: