This add-on enables connecting your MemberPress enabled website to your discord server. Now you can add/remove MemberPress members directly to your discord server roles, assign roles according to your member levels, unassign roles when they expire, change role when they change membership.
Label "Login with Discord on checkout Page": [] checkbox. option key: ets_pmpro_discord_login_with_discord
If this setting is enabled and the member is not already logged in we will display the "Login with Discord" button.
Setting "Create a new account when doing login with Discord " : [] checkbox. option key: ets_pmpro_discord_create_acc_with_discord
Implementation:
We will initiate the Login with Discord.
Once we will get the email address of the account we will check if that email already exists, so we will save the discord ID and unique identifier in user_meta and will log in to that customer.
If the email does not exist and key ets_pmpro_discord_create_acc_with_discord is set to TRUE we will create an account and save discord data in user_meta and then login with that new account.
Requirements:
Implementation:
ets_pmpro_discord_create_acc_with_discord
is set to TRUE we will create an account and save discord data in user_meta and then login with that new account.