WordPressQQ微信等登錄插件二開美化版
WordPressQQ微信等登錄插件二開美化版今天給大家分享一個WordPress個人網(wǎng)站/博客等接入社交登錄方法,網(wǎng)站使用了QQWorld通行證插件,覺得圖標不好看,就仿照Foxlogin寫的登錄前端樣式。 支持QQ、微信、新浪微博、支付寶、百度、推特、谷歌、臉書、line 1
WordPressQQ微信等登錄插件二開美化版今天給大家分享一個WordPress個人網(wǎng)站/博客等接入社交登錄方法,網(wǎng)站使用了QQWorld通行證插件,覺得圖標不好看,就仿照Foxlogin寫的登錄前端樣式。 支持QQ、微信、新浪微博、支付寶、百度、推特、谷歌、臉書、line 1
今天給大家分享一個WordPress個人網(wǎng)站/博客等接入社交登錄方法,網(wǎng)站使用了QQWorld通行證插件,覺得圖標不好看,就仿照Foxlogin寫的登錄前端樣式。
支持QQ、微信、新浪微博、支付寶、百度、推特、谷歌、臉書、line 10種社交登錄。
以下為原版登錄
鉆芒大神美化:
<?php get_avatar($id_or_email, $size, $default, $alt, $args); ?>
參考:https://codex.wordpress.org/Function_Reference/get_avatar
如何獲取頭像圖片的URL?
<?php get_user_meta($user->ID, 'QQWorld Passport Avatar', true); ?>
參考:https://codex.wordpress.org/Function_Reference/get_user_meta
如何更換頭像圖片?
<?php update_user_meta($user->ID, 'QQWorld Passport Avatar', $image_url); ?>
參考:https://codex.wordpress.org/Function_Reference/update_user_meta
如何輸出第三方登錄列表?
<?php do_action('qqworld-passport'); ?>
<?php
ob_start();
do_action('qqworld-passport');
$codes = ob_get_contents();
ob_end_clean();
?>
如何調(diào)用綁定社交賬號的按鈕?
<?php
if (!function_exists('get_user_to_edit')) include(ABSPATH . '/wp-admin/includes/user.php');
do_action( 'binding_social_media_account', get_user_to_edit(get_current_user_id()) );
?>
相關(guān)文件下載地址
城通網(wǎng)盤下載
下載資源版權(quán)歸作者所有;本站所有資源均來源于網(wǎng)絡(luò),僅供學(xué)習(xí)使用,請支持正版!
版權(quán)所有:深圳市網(wǎng)商在線科技有限公司