通知短信+运营短信,5秒速达,支持群发助手一键发送🚀高效触达和通知客户 广告
<div class="article-body kancloud-markdown-body"><div id="doc-body" data-v-380220c1="" style=""><div id="page\_md\_content" class="page\_content\_main" data-v-380220c1="" style="width: 95%;"><div class="main-editor markdown-body editormd-html-preview" data-v-380220c1="" id="editor-md"><div id="doc-body"><div id="page\_md\_content" class="page\_content\_main" style="width: 95%;"><div id="editor-md" class="main-editor markdown-body editormd-html-preview"><div class="markdown-toc editormd-markdown-toc"><ul class="markdown-toc-list"></ul></div><p><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665851260-e9b9e1aeb4b5a81.jpg" alt="" style="cursor: zoom-in;"></p><br><h2 id="h2--"><a name="一、意梵官网创建应用" class="reference-link"></a><span class="header-link octicon octicon-link"></span>一、意梵官网创建应用</h2><p>应用名称:正确填写您的网站名称<br>应用首页网址:填写您已建设好并且可以访问的网址(如:<a href="https://www.ss349.cn/)" target="\_blank">https://www.ss349.cn/)</a><br>回调域名白名单:填写您需要应用的域名(如:www.ss349.cn)</p><br><p><img tabindex="0" src="images/QQ截图20230715193848.png" alt="" style="cursor: zoom-in;"></p><br><h2 id="h2--wordpress-"><a name="二、下载 wordpress 插件并安装" class="reference-link"></a><span class="header-link octicon octicon-link"></span>二、下载 wordpress 插件并安装</h2><p>进入开发文档 &gt; 对接插件下载 &gt; 下载wordpress专用插件</p><br><p><img tabindex="0" src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=4d2d4f94e027506e99c7228b258b3343&amp;file=file.png" alt="" style="cursor: zoom-in;"></p><br><p>进入wordpress后台安装刚刚所下载的插件,安装后在插件列表启用 Clogin Passport 插件</p><br><p><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665847913-a5d648db8a6de64.jpg" alt="" style="cursor: zoom-in;"></p><br><h2 id="h2--"><a name="三、填写插件所需参数" class="reference-link"></a><span class="header-link octicon octicon-link"></span>三、填写插件所需参数</h2><p>打开聚合登录插件,填写第一步创建完成后的应用数据</p><br><p>接口地址:<a href="https://www.ss349.cn/" target="\_blank">https://www.ss349.cn/</a><br>APPID:1089<br>APPKEY:1348622dc4d4c3ada97c71a7a565x3cd<br>开启的登录方式:(根据需求选择开启)<br>头像优先级:9999(默认)<br>自动注册:建议启用(意思是如果没有绑定社交账户,则自动注册新的账户)</p><br><p>注:如果启用自动注册则在 设置 &gt; 常规 &gt; 成员资格 启用任何人都可以注册,并保存更改</p><br><p><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665848123-14e797e45e65358.jpg" alt="" style="cursor: zoom-in;"></p><br><h2 id="h2--"><a name="四、为登录页面添加登录按钮" class="reference-link"></a><span class="header-link octicon octicon-link"></span>四、为登录页面添加登录按钮</h2><p>在插件 &gt; 开发文档; 找到如何输出第三方登录列表?</p><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;div <span class="hljs-class"><span class="hljs-keyword"><span class="hljs-class"><span class="hljs-keyword">class</span></span></span><span class="hljs-class">=”</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">col</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">lg</span></span></span><span class="hljs-class">-12 </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">mt</span></span></span><span class="hljs-class">-4 </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">text</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">center</span></span></span><span class="hljs-class">“&gt;</span><br><span class="hljs-class">&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">do\_action</span></span></span><span class="hljs-class">(‘</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">clogin</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">passport</span></span></span><span class="hljs-class">‘); ?&gt;</span><br><span class="hljs-class">&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><br><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">ob\_start</span></span></span><span class="hljs-class">();</span><br><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">do\_action</span></span></span><span class="hljs-class">(‘</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">clogin</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">passport</span></span></span><span class="hljs-class">‘);</span><br><span class="hljs-class">$</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">codes</span></span></span><span class="hljs-class"> = </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">ob\_get\_contents</span></span></span><span class="hljs-class">();</span><br><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">ob\_end\_clean</span></span></span><span class="hljs-class">();</span><br><span class="hljs-class">?&gt;</span><br><span class="hljs-class">&lt;/</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">div</span></span></span><span class="hljs-class">&gt;</span><br></span></code></pre><span class="ಠcopy-code-button">复制</span></div><br><p>复制代码,进入 \\riplus\\pages\\login.php<br>粘贴到如下图示即可(当然你也可以根据自己需求放置其它地方)</p><br><p><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665848867-c0b2ee6418d19ac.jpg" alt="" style="cursor: zoom-in;"><br><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665849275-e9b9e1aeb4b5a81.jpg" alt="" style="cursor: zoom-in;"></p><br><h2 id="h2--"><a name="五、为用户个人资料添加自定义绑定按钮" class="reference-link"></a><span class="header-link octicon octicon-link"></span>五、为用户个人资料添加自定义绑定按钮</h2><p>在插件 &gt; 开发文档; 找到如何调用绑定社交账号的按钮?</p><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs"><span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span><br><span class="hljs-keyword"><span class="hljs-keyword">if</span></span> (!function\_exists(<span class="hljs-string">‘get\_user\_to\_edit’</span>)) <span class="hljs-keyword"><span class="hljs-keyword">include</span></span>(ABSPATH . <span class="hljs-string">‘/wp-admin/includes/user.php’</span>);<br>do\_action( <span class="hljs-string">‘binding\_social\_media\_account’</span>, get\_user\_to\_edit(get\_current\_user\_id()) );<br><span class="hljs-meta"><span class="hljs-meta">?&gt;</span></span><br>&lt;br&gt;<br></code></pre><span class="ಠcopy-code-button">复制</span></div><br><p>复制代码,进入 \\riplus\\pages\\user\\index.php<br>粘贴到如下图所示即可(当然你也可以根据自己需求放置其它地方)</p><br><p><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665849828-86234e18ed0292c.jpg" alt="" style="cursor: zoom-in;"><br><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665849951-6a4f344a743fa10.jpg" alt="" style="cursor: zoom-in;"></p><br><h2 id="h2--"><a name="六、美化“个人中心”绑定按钮页面" class="reference-link"></a><span class="header-link octicon octicon-link"></span>六、美化“个人中心”绑定按钮页面</h2><p>进入 plugins\\clogin-passport\\clogin-passport.php</p><br><h3 id="h3-1-"><a name="1.美化个人中心账号绑定按钮" class="reference-link"></a><span class="header-link octicon octicon-link"></span>1.美化个人中心账号绑定按钮</h3><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;h3&gt;<span class="hljs-meta"><span class="hljs-meta">&lt;?php</span></span> \_e( <span class="hljs-string">‘Social Media Accounts’</span>, <span class="hljs-keyword"><span class="hljs-keyword">$this</span></span>-&gt;text\_domain ); <span class="hljs-meta"><span class="hljs-meta">?&gt;</span></span>&lt;/h3&gt;<br></code></pre><span class="ಠcopy-code-button">复制</span></div><br><p>更改为(这是“社交媒体账户”文字更改)</p><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;h5&gt;第三方登录&lt;/h5&gt;<br></code></pre><span class="ಠcopy-code-button">复制</span></div><br><hr><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;a <span class="hljs-class"><span class="hljs-keyword"><span class="hljs-class"><span class="hljs-keyword">class</span></span></span><span class="hljs-class">=”</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">button</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">button</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">primary</span></span></span><span class="hljs-class">“ </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">href</span></span></span><span class="hljs-class">=”&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">echo</span></span></span><span class="hljs-class"> $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">bind\_url</span></span></span><span class="hljs-class">; ?&gt;”&gt;&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">\_e</span></span></span><span class="hljs-class">(‘</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">Bind</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">Now</span></span></span><span class="hljs-class">‘, $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">this</span></span></span><span class="hljs-class">-&gt;</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">text\_domain</span></span></span><span class="hljs-class">); ?&gt;&lt;/</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">a</span></span></span><span class="hljs-class">&gt;</span><br></span></code></pre><span class="ಠcopy-code-button">复制</span></div><br><p>更改为(这是“立即绑定”文字变按钮更改)</p><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;a <span class="hljs-class"><span class="hljs-keyword"><span class="hljs-class"><span class="hljs-keyword">class</span></span></span><span class="hljs-class">=”</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">btn</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">btn</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">primary</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">mb</span></span></span><span class="hljs-class">-2 </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">ml</span></span></span><span class="hljs-class">-2” </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">href</span></span></span><span class="hljs-class">=”&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">echo</span></span></span><span class="hljs-class"> $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">bind\_url</span></span></span><span class="hljs-class">; ?&gt;”&gt;&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">\_e</span></span></span><span class="hljs-class">(‘</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">Bind</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">Now</span></span></span><span class="hljs-class">‘, $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">this</span></span></span><span class="hljs-class">-&gt;</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">text\_domain</span></span></span><span class="hljs-class">); ?&gt;&lt;/</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">a</span></span></span><span class="hljs-class">&gt;</span><br></span></code></pre><span class="ಠcopy-code-button">复制</span></div><br><hr><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;a <span class="hljs-class"><span class="hljs-keyword"><span class="hljs-class"><span class="hljs-keyword">class</span></span></span><span class="hljs-class">=”</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">button</span></span></span><span class="hljs-class">“ </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">href</span></span></span><span class="hljs-class">=”&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">echo</span></span></span><span class="hljs-class"> $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">bind\_url</span></span></span><span class="hljs-class">; ?&gt;” </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">title</span></span></span><span class="hljs-class">=”&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">echo</span></span></span><span class="hljs-class"> $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">openid</span></span></span><span class="hljs-class">; ?&gt;”&gt;&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">\_e</span></span></span><span class="hljs-class">(‘</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">Rebind</span></span></span><span class="hljs-class">‘, $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">this</span></span></span><span class="hljs-class">-&gt;</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">text\_domain</span></span></span><span class="hljs-class">); ?&gt;&lt;/</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">a</span></span></span><span class="hljs-class">&gt;</span><br></span></code></pre><span class="ಠcopy-code-button">复制</span></div><br><p>更改为(这是“重新绑定”文字变按钮更改)</p><br><div class="ಠcopy-code-container"><pre><span class="btn-pre-copy">复制</span><span class="btn-pre-copy">复制</span><code class="lang-php hljs">&lt;a <span class="hljs-class"><span class="hljs-keyword"><span class="hljs-class"><span class="hljs-keyword">class</span></span></span><span class="hljs-class">=”</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">btn</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">btn</span></span></span><span class="hljs-class">-</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">primary</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">mb</span></span></span><span class="hljs-class">-2 </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">ml</span></span></span><span class="hljs-class">-2” </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">href</span></span></span><span class="hljs-class">=”&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">echo</span></span></span><span class="hljs-class"> $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">bind\_url</span></span></span><span class="hljs-class">; ?&gt;” </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">title</span></span></span><span class="hljs-class">=”&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">echo</span></span></span><span class="hljs-class"> $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">openid</span></span></span><span class="hljs-class">; ?&gt;”&gt;&lt;?</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">php</span></span></span><span class="hljs-class"> </span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">\_e</span></span></span><span class="hljs-class">(‘</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">Rebind</span></span></span><span class="hljs-class">‘, $</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">this</span></span></span><span class="hljs-class">-&gt;</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">text\_domain</span></span></span><span class="hljs-class">); ?&gt;&lt;/</span><span class="hljs-title"><span class="hljs-class"><span class="hljs-title">a</span></span></span><span class="hljs-class">&gt;</span><br></span></code></pre><span class="ಠcopy-code-button">复制</span></div><br>通过以上步骤教程更改后,我们来看看最终改变美化效果吧<br><br><p><img tabindex="0" src="https://www.wpsea.cn/wp-content/uploads/2022/10/1665851113-e9b9e1aeb4b5a81.jpg" alt="" style="cursor: zoom-in;"></p><br></div></div></div></div></div></div></div>