Adding bp social connect login buttons at woocommerce checkout

Please add the given code in your wplms-customizer.php file in wplms customizer plugin :

add_action('woocommerce_login_form_start','add_bp_social_connect_woocommerce');
add_action('woocommerce_checkout_before_customer_details','add_bp_social_connect_woocommerce');
function add_bp_social_connect_woocommerce(){
if(!(is_user_logged_in())){
 do_action( 'bp_after_sidebar_login_form' );
}else{
  echo '<div class="message">Already logged in with social</div>';
}
}

refer  :  http://prntscr.com/ampdm1

Note: change the text in the tip ” Already logged in with social ” as you want.
this tip will not redirect user again to checkout automatically after login.

Was this article helpful?

1 Comment

Leave A Comment?