'}}

Connect your PaidMembership plug-in to Discord for seamless community building!

At HanamiWEB Online School,

●Ask questions in real-time in the virtual study room!

●Ask as many questions as you want via chat!

●E-learning materials that you can learn as much as you want, 24 hours a day!

All included for just 2,500 yen/month!

[PaidMembership Prp]Free version of the plugin and free add-onsConnect Paid Memberships Pro to Discord] We'll show you how to automatically add subscribers to Discord!

The explanation assumes that you have already created a Discord community.
This article does not cover how to create a Discord community.

Overall flow

It's complicated, so I'll start with a brief overview of the setup:

  1. Create an application with Discord Developer...Get ClientID/SecretID
  2. Enter ClientID/SecretID to Paid Membership Pro
  3. Get Redirection URL from Paid Membership Pro
  4. Enter Redirection URL in Discord Developer
  5. Create a BOT with Discord Developer...Get a Bot Token
  6. Enter Bot Token into Paid Membership Pro
  7. Launch Developer Tools in Discord
  8. Enter ServerID into Paid Membership Pro

Paid Membership Pro and Discord connection completeOnce connected, you'll see a Discord Connect button on your user information page.

You can also connect to specific rooms on Discord, so we'll show you how to connect to rooms in the second half of this article.

Discord Developer Page

Visit the Discord Developer Application page.

Create a new application

Click the [Create New Application] button to create a new application.

  1. Enter the app name (Japanese is possible)
  2. Create button

Client ID and secret key

Next, click the OAuth2 tab and check the client ID and secret key to enter into the Paid Membership Pro plugin installed in WordPress.

  1. CLIENT
  2. CLIENT SECRET

Copy in order

Enter into WP

  1. membership
  2. Application Details
  3. Client ID/Client Secret

Paste it in

Enter Redirection

Copy the Redirection URL listed in WP.

Once you have pasted it into the Redirects section, click the [Save Change] button at the bottom.

Creating a new BOT

Next, create the BOT.

  1. Go to the BOT tab
  2. Click the [Add Bot] button on Build-A-Bot.

【Yes do it】

Turn off Public BOT

To make this a members-only bot, turn off Public Bot and click [Save Changed] to save the changes.

Copy BOT Token

Copy the BOT token and paste it into WordPress.

Paste into Paid Membership Pro

Paste in the BOT Token.

Check the server ID

Open Discord and click the gear to open Settings.

You can get the server ID by changing your settings to developer mode.

Turn on developer mode

  1. Advanced Setting
  2. Developer Mode
  3. ON

to.

Server ID Copy

After that, right-click on the Discord community you want to connect to and you will see a space to copy the server ID.

Copy

Paste in Paid Membership Pro

Paste it in the Server ID field

connection

Click the [Connect your bot] button.

Continue with authentication and it will be OK when it is completed.

Change the BOT's authority to a higher level

Open your server settings.

Give TOP level permissions

Currently there is only one, but if you have multiple, please bring the BOT you created this time to the top.

Check the log

Check the log on Paid Membership Pro to make sure the connection is successful.

Click [Clear Logs!] and if the following display appears, it's OK.

Add a connection button to the user's My Page

Once Paid Membership Pro and Discord are connected, a Discord connection button will appear in the user information section of your My Page.

Allocate membership to rooms

This time, I would like to create private rooms for each member who subscribes, and create a place where members can freely interact with each other. With the settings up to this point, users can automatically connect to Discord from their My Page.Manual placement in private roomsHave to.

By using the role permission function, each membership level created in Paid Membership Pro can automatically join private rooms.

This explanation is based on the assumption that a private room has been created in Discord. In my case, I have set this room to private with a lock.

Create authority

First, create a role in Discord.

Server Settings

Role Creation

Give it a name

Here, I gave it a name and set a color. I didn't change any permissions.

Display confirmation

Click "View Server as Role" to see what the people in the role you just created look like.

Locked rooms, including Amelia's room, are not visible.

Add role to locked room

Next, assign roles to locked rooms.

Click the gear icon for the room you want to assign permissions to.

Click on [Permissions]

  • Add a member or role

Click to add the role you just created.

Check the appearance of the roll

Let's check the display again by viewing the server as a role.

Now added!

Create a role in Discord and add it to all locked rooms that the role can join.

Connect WordPress to Discord locked rooms

It's been a long journey, but we've finally reached our final goal: implementing automation that connects users to a specific Discord room once they register as a member on WordPress.

  1. membership
  2. Discord Settings
  3. Role Mapping

and set it up.

We have already created three types of membership plans with Paid Membership Pro: [WordPress Basics Course], [Reservation System Plugin Amelia Course], and [Page Builder Brizy Course].

Flash Mapping

Click the red Flash Mapping button to update to the latest version.

Then, the Discord permissions you just created were displayed.

Next, drag and move the Discord Role to the membership type you created in Paid Membership Pro.

It looks like this. Finally, click the [save change] button to save it and you're done!

summary

I know people who have been using the free Simple Membership plugin in conjunction with Facebook groups, but I discovered that the free version of Paid Membership Pro can be automatically linked to Discord!

This is really amazing.

Leave the reskilling of your website to us!

Since 2019, we have been sharing skills related to WordPress and websites. We have accumulated case studies and know-how, and are good at quickly and accurately solving problems. If you have any concerns about your website, please feel free to contact us via our official LINE account!

↑Click to open the official LINE page

Latest Articles

'}}
How to Accept Credit Installment Payments Using Lifter LMS
'}}
Explains how to customize the LifterLMS system automatic output page
'}}
LifterLMS Customization example when the registration date and active date are different due to bank transfer, etc.
'}}
(Solved) Emails sent from WordPress to Gmail are not being sent [Lollipop]
WP Rocket - WordPress Caching Plugin
en_USEnglish