{"id":257,"date":"2026-07-01T12:48:54","date_gmt":"2026-07-01T05:48:54","guid":{"rendered":"https:\/\/giaodienwp.net\/?p=257"},"modified":"2026-07-01T12:48:54","modified_gmt":"2026-07-01T05:48:54","slug":"huong-dan-cau-huong-dan-cau-hinh-dang-nhap-bang-discord","status":"publish","type":"post","link":"https:\/\/giaodienwp.net\/en\/huong-dan-cau-huong-dan-cau-hinh-dang-nhap-bang-discord\/","title":{"rendered":"Configuration Guide Configuration Guide for Discord Login"},"content":{"rendered":"<h2>Guide to Configuring Discord Login (Vietnamese)<\/h2>\n<p>This document guides you on how to create and configure a Discord application to enable the Discord login feature on your website.<\/p>\n<h3>Step 1: Create a new application on Discord<\/h3>\n<ol>\n<li>Visit the page <a href=\"https:\/\/discord.com\/developers\/applications\" target=\"_blank\" rel=\"nofollow noopener\">Discord Developer Portal<\/a> and log in with your Discord account.<\/li>\n<li>Click the <strong>New Application<\/strong> (New Application) button in the top right corner.<\/li>\n<li>Enter a name for the application (e.g., <code>ZTruyen Login<\/code>), agree to Discord's terms, and click <strong>Create<\/strong> (Create).<\/li>\n<\/ol>\n<h3>Step 2: Get Client ID and Client Secret<\/h3>\n<ol>\n<li>After creating the application, you will be automatically redirected to its management page (section <strong>General Information<\/strong>).<\/li>\n<li>Here, you can upload an App Icon and enter a short description if desired. (Discord does not require complex brand verification like Google, so you can set any avatar you like).<\/li>\n<li>Go to <strong>OAuth2<\/strong> in the left menu list.<\/li>\n<li>On the OAuth2 page, you will see the code <strong>Client ID<\/strong> (or Application ID). Please copy this code.<\/li>\n<li>Right below the Client ID section, click the button <strong>Reset Secret<\/strong> then click <strong>Yes, do it!<\/strong> to generate and copy the code <strong>Client Secret<\/strong>. Note: Please save this Client Secret carefully as it is only displayed once.<\/li>\n<\/ol>\n<h3>Step 3: Configure Redirect URI<\/h3>\n<ol>\n<li>Still on the page <strong>OAuth2<\/strong>, find the section <strong>Redirects<\/strong>.<\/li>\n<li>Click the button <strong>Add Redirect<\/strong>.<\/li>\n<li>Enter the Callback URL to receive login data provided by the WordPress Plugin.\n<div class=\"code-box\">Example: <code>https:\/\/quangtuyen.vn\/wp-login.php?loginSocial=discord<\/code><\/div>\n<\/li>\n<li>Click the button <strong>Save Changes<\/strong> (Save changes) green button appears on the bottom bar of the screen.<\/li>\n<li>Enter the code pair <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> you just saved into the Plugin configuration page on your WordPress website to complete the integration.<\/li>\n<\/ol>\n<hr \/>\n<h2>Discord OAuth 2.0 Setup Guide (English)<\/h2>\n<p>This document provides step-by-step instructions to create and configure a Discord Application to enable Discord Sign-In on your website.<\/p>\n<h3>Step 1: Create a New Discord Application<\/h3>\n<ol>\n<li>Go to the <a href=\"https:\/\/discord.com\/developers\/applications\" target=\"_blank\" rel=\"nofollow noopener\">Discord Developer Portal<\/a> and log in with your Discord account.<\/li>\n<li>Click the <strong>New Application<\/strong> button at the top right corner.<\/li>\n<li>Enter a name for your app (e.g., <code>ZTruyen Login<\/code>), agree to Discord&#8217;s Developer Terms, and click <strong>Create<\/strong>.<\/li>\n<\/ol>\n<h3>Step 2: Retrieve Client ID and Client Secret<\/h3>\n<ol>\n<li>Once the application is created, you will be redirected to the <strong>General Information<\/strong> page.<\/li>\n<li>Here, you can upload an App Icon and write a short description if you wish. (Discord does not require rigorous brand verification like Google, so you can freely customize this).<\/li>\n<li>Navigate to the <strong>OAuth2<\/strong> tab from the left sidebar menu.<\/li>\n<li>On the OAuth2 page, locate the <strong>Client ID<\/strong> (or Application ID). Copy this code.<\/li>\n<li>Below the Client ID, click the <strong>Reset Secret<\/strong> button, then click <strong>Yes, do it!<\/strong> to generate and copy your <strong>Client Secret<\/strong>. Save it securely, as it will only be shown once.<\/li>\n<\/ol>\n<h3>Step 3: Configure Redirect URI<\/h3>\n<ol>\n<li>Still on the <strong>OAuth2<\/strong> page, locate the <strong>Redirects<\/strong> section.<\/li>\n<li>Click the <strong>Add Redirect<\/strong> button.<\/li>\n<li>Enter the login Callback URL provided by your WordPress Discord login plugin.\n<div class=\"code-box\">Example: <code>https:\/\/quangtuyen.vn\/wp-login.php?loginSocial=discord<\/code><\/div>\n<\/li>\n<li>Click the green <strong>Save Changes<\/strong> button that appears at the bottom banner of the page.<\/li>\n<li>Paste the copied <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> into your WordPress website plugin configuration settings to complete the integration.<\/li>\n<\/ol>","protected":false},"excerpt":{"rendered":"<p>H\u01b0\u1edbng D\u1eabn C\u1ea5u H\u01b0\u1edbng D\u1eabn C\u1ea5u H\u00ecnh \u0110\u0103ng Nh\u1eadp B\u1eb1ng Discord (Ti\u1ebfng Vi\u1ec7t) T\u00e0i li\u1ec7u n\u00e0y h\u01b0\u1edbng d\u1eabn c\u00e1ch t\u1ea1o v\u00e0 c\u1ea5u h\u00ecnh \u1ee9ng d\u1ee5ng Discord \u0111\u1ec3 ph\u1ee5c v\u1ee5 t\u00ednh n\u0103ng \u0111\u0103ng nh\u1eadp b\u1eb1ng Discord tr\u00ean website c\u1ee7a b\u1ea1n. B\u01b0\u1edbc 1: T\u1ea1o \u1ee9ng d\u1ee5ng m\u1edbi tr\u00ean Discord Truy c\u1eadp trang Discord Developer Portal v\u00e0 \u0111\u0103ng [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-257","post","type-post","status-publish","format-standard","hentry","category-huong-dan"],"_links":{"self":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/posts\/257","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/comments?post=257"}],"version-history":[{"count":0,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/posts\/257\/revisions"}],"wp:attachment":[{"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/media?parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/categories?post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/giaodienwp.net\/en\/wp-json\/wp\/v2\/tags?post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}