I am working on a WordPress site that uses WooCommerce for e-commerce. I want to add a Google login button below the login form on the My Account page. I am using Nextend Social Login plugin. They provide shortcodes to show the login buttons anywhere on the website.
You can use the woocommerce_login_form_end hook. To add the button after the login form in your account page in WooCommerce, you can use a snippet like this:
add_filter( 'woocommerce_login_form_end', 'add_buttons_below_login_form' );
function add_buttons_below_login_form() {
echo do_shortcode('[nextend_social_login]');
}
You should add this code to your child theme’s functions.php file.
You can also use the woocommerce_login_form_start hook to show your login button at the beginning of the login form.