Last active
August 5, 2021 14:38
-
-
Save KaineLabs/948e23e067d4eaaac6c791ebb2330414 to your computer and use it in GitHub Desktop.
Add Social Login Vkontakte Network
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add Vkontakte network ! | |
* | |
* Redirect URL: https://yoursite.com/yz-auth/social-login/Vkontakte | |
*/ | |
function yzc_add_vk_network( $providers = null ) { | |
$providers[] = 'Vkontakte'; | |
return $providers; | |
} | |
add_filter( 'youzify_social_login_providers_list', 'yzc_add_vk_network' ); | |
function yzc_add_vk_network_data( $providers = null ) { | |
$providers['Vkontakte'] = array( | |
'app' => 'id', | |
'icon' => 'fab fa-vk' | |
); | |
return $providers; | |
} | |
add_filter( 'youzify_social_login_providers_data', 'yzc_add_vk_network_data' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment