Usage:

This hook enables you to influence and manipulate the WordPress role (administrator, moderator, editor, etc) for users with certain Infusionsoft tags.

If this hook is used, the WordPress user role will be updated each time the user logs in, as well as when the “i4w_genpass” module is used.

Aside from the membership tags, an additional tag needs to be assigned to those individuals who should have any WordPress role other than the default (usually “subscriber”) role on the site.

Parameters:

iMember360 will pass the following parameters to your filter function:

$default_role contains the default WordPress role for your site.
$tags contains an array of all Infusionsoft tags assigned to this user.

Example: