Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

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
You can’t perform that action at this time.