Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created March 30, 2019 00:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/9abf0b62e2a91f830f77875c39952c71 to your computer and use it in GitHub Desktop.
Save KaineLabs/9abf0b62e2a91f830f77875c39952c71 to your computer and use it in GitHub Desktop.
Re-install Social Login Networks
<?php
/**
* Re-install Social Login Networks
*/
function yzc_install_social_login_networks() {
if ( ! get_option( 'logy_social_providers_reinstall' ) ) {
// Get Available Social Networks.
$providers = array( 'Facebook', 'Twitter', 'Google', 'LinkedIn', 'Instagram' );
update_option( 'logy_social_providers', $providers );
update_option( 'logy_social_providers_reinstall', true );
}
}
add_action( 'init', 'yzc_install_social_login_networks' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment