BACK TO DIRECTORY

Custom connect button block for Discord

by Younes

0.0
(0 ratings)

Custom Connect Button Block for Discord adds a flexible Gutenberg block that allows users to connect or disconnect their Discord accounts from any page or post.

The block is fully customizable (text, colors, text, styles) and can display each user’s connection status, including the Discord roles they will be assigned (via the integration add-on).

Unlike shortcodes, this block supports unique design variations per page and offers a real-time preview toggle directly in the editor, so you can instantly view the exact frontend output without publishing.

Features

– Add a fully customizable “Connect to Discord” button.
– Display a “Disconnect” button for already connected users.
– Show assigned Discord roles dynamically.
– Real-time live preview in the editor with Play/Stop toggle.
– No coding required – all options are visual in the block editor.

Supported Add-ons

This block requires one of the following plugins for the actual Discord integration (authentication and role sync):
PMPro Discord Add-on
ExpressTech MemberPress Discord Add-on
Connect Ultimate Member to Discord
Connect Tutor LMS to Discord

This plugin’s source code is available on GitHub.
Contributions and bug reports are welcome.

External services

This plugin does not connect to external APIs directly.
Instead, supported add-ons (listed above) handle all communication with the Discord API.

Optional external call used by this plugin:
Discord CDN (https://cdn.discordapp.com/) — to display a connected user’s avatar image, if provided by the add-on.
Data sent: None.
Data retrieved: Avatar image.
When: Only when the user is already connected to Discord through a supported add-on.

For more details:
Discord Terms of Service
Discord Privacy Policy

Screenshots

Animated demo showcasing all block features in action.

Animated demo showcasing all block features in action.

Enable live preview for non-connected user.

Enable live preview for non-connected user.

Live preview for connected user to Discord.

Live preview for connected user to Discord.

The button text placeholder settings.

The button text placeholder settings.

The color settings for buttons: front color and background color.

The color settings for buttons: front color and background color.

Initial block status - buttons + text.

Initial block status - buttons + text.

Plugin Details

Active Installs
0
Total Downloads
423
Version
1.0.1
Requires WP
6.8
Requires PHP
7.4
Tested Up To
6.8.8
Added
2025-08-25
Last Updated
2025-09-04 10:38am GMT

Ratings

5
0
4
0
3
0
2
0
1
0