Skip to content

Instantly share code, notes, and snippets.

@bekarice
Last active February 4, 2019 23:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bekarice/38f97b76ba3fdc2e641f to your computer and use it in GitHub Desktop.
Save bekarice/38f97b76ba3fdc2e641f to your computer and use it in GitHub Desktop.
Add WooCommerce Social Login buttons to the wp-login.php pages
<?php // only copy if needed
/**
* Adds login buttons to the wp-login.php pages
*/
function sv_wc_social_login_add_buttons_wplogin() {
// Displays login buttons to non-logged in users + redirect back to login
woocommerce_social_login_buttons();
}
add_action( 'login_form', 'sv_wc_social_login_add_buttons_wplogin' );
add_action( 'register_form', 'sv_wc_social_login_add_buttons_wplogin' );
@jeepsj
Copy link

jeepsj commented May 15, 2016

Where do I paste this code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment